slow loop?
Peter Hansen
peter at engcorp.com
Thu Jan 16 11:58:58 EST 2003
maney at pobox.com wrote:
>
> OTOH, if you want a Python implementation for basic CSV, here's what I
> did [...]
>
> for l in someFile.xreadlines():
> fields = csv.split(l)
> ...
I haven't reviewed the code, but with the above line driving it, it
doesn't seem likely it can handle any lines with embedded newlines,
which can easily occur in a CSV file (at least, those written by Excel
for one).
Might be great for some people though. Nice and simple.
-Peter
More information about the Python-list
mailing list