importing csv file into sqlite
James Mills
prologic at shortcircuit.net.au
Thu Dec 18 19:23:30 EST 2008
On Fri, Dec 19, 2008 at 10:11 AM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar> wrote:
> But your code does *exactly* that, it reads the whole file in memory:
>
>> def mkBuffer(fd):
>> buffer = StringIO()
>> buffer.write(fd.read())
>> ...
>
> That mkBuffer function has no useful purpose IMHO, just remove it.
It was a mistake in my implementation at the
time of writing :) I've since fixed and removed it!
Thanks though :)
cheers
James
More information about the Python-list
mailing list