[Csv] Something's fishy w/ Mac line endings...
Skip Montanaro
skip at pobox.com
Mon Aug 18 05:35:52 CEST 2003
I wrote:
Looking at the problem a bit, I see this call chain:
Reader_iternext ->
PyIter_Next ->
file_iternext ->
readahead_get_line_skip
On second thought, I think the problem may be that we're calling PyIter_Next
at all. That's probably only supposed to work if the file is opened in text
mode. Since we expect files to be opened in binary mode, Reader_iternext
should probably be doing its own EOL detection based upon the setting of the
lineterminator. That's a lot of extra labor, but may be the correct
solution.
Skip
More information about the Csv
mailing list