importing csv file into sqlite

John Machin sjmachin at lexicon.net
Fri Dec 19 09:08:15 EST 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