[CSV] Re: First Cut at CSV PEP

Andrew McNamara andrewm at object-craft.com.au
Wed Jan 29 00:28:03 CET 2003


>>> The universal readlines support in Python 2.3 may impact the use of
>>> a file reader/writer when processing different text files, but
>>> would returns or newlines within a field be impacted? Should the
>>> PEP and API specify that the record delimiter can be either CR, LF,
>>> or CR/LF, but use of those characters inside a field requires the
>>> field to be quoted or an exception will be thrown?
>
>Interesting point.  I think that newlines inside records are going to
>be the same as those separating records.  Anything else would be very
>bizarre.

You should know better than to make a statement like that where Microsoft
is concerned. Excel uses a single LF within fields, but CRLF at the end
of lines. If you import a field containing CRLF, the CR appears within
the field as a box (the "unprintable character" symbol).

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Csv mailing list