[Python-Dev] file read-ahead with Mac end-of-line

Skip Montanaro skip at pobox.com
Mon Aug 18 10:26:10 EDT 2003

    >> We'll have to consider whether universal newline mode - along with an
    >> implicit restriction in possible EOL sequences - is the way to go.

    aahz> How about EOL is None means universal newlines and is the default?

My worry is that if you have (for example) a \n embedded in a field when the
EOL character is a \r that the parsing would get screwed up.  That \n is a
character in a field, not the end of a record.  (Such fields may always have
to be quoted, but I'm not sure.)  At this level it's really an issue for
Andrew MacNamara or Dave Cole.  I'm not too familiar with the underlying C

I suspect in the end that the csv module may have to do all it's own I/O.
That would be a PITA, but might be required.


More information about the Python-Dev mailing list