[Python-Dev] Re: [Csv] csv module and universal newlines
Bob Ippolito
bob at redivi.com
Thu Jan 13 03:56:05 CET 2005
On Jan 12, 2005, at 21:39, Skip Montanaro wrote:
> Jack> On MacOSX you really want universal newlines. CSV files
> produced
> Jack> by older software (such as AppleWorks) will have \r line
> Jack> terminators, but lots of other programs will have files with
> Jack> normal \n terminators.
>
> Won't work. You have to be able to write a Windows csv file on any
> platform. Binary mode is the only way to get that.
Isn't universal newlines only used for reading?
I have had no problems using the csv module for reading files with
universal newlines by opening the file myself or providing an iterator.
Unicode, on the other hand, I have had problems with.
-bob
More information about the Csv
mailing list