importing csv file into sqlite

John Machin sjmachin at lexicon.net
Fri Dec 19 15:08:15 CET 2008


On Dec 18, 5:17 pm, "James Mills" <prolo... at shortcircuit.net.au>
wrote:

>
> def readCSV(file):
>   if type(file) == str:

Stiff cheese if the file path is a unicode object, eh?

>      fd = open(file, "rU")
>   else:
>      fd = file
>



More information about the Python-list mailing list