A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-January/050971.html below:

[Python-Dev] Re: [Csv] csv module and universal newlines

[Python-Dev] Re: [Csv] csv module and universal newlines [Python-Dev] Re: [Csv] csv module and universal newlinesBob 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 Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4