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/2007-September/074805.html below:

[Python-Dev] New lines, carriage returns, and Windows

[Python-Dev] New lines, carriage returns, and WindowsGreg Ewing greg.ewing at canterbury.ac.nz
Sun Sep 30 02:30:45 CEST 2007
Nick Maclaren wrote:
> Grrk.  That's the problem.  You don't get back what you have written

You do as long as you *don't* use universal newlines mode
for reading. This is the best that can be done, because
universal newlines are inherently ambiguous.

If you want universal newlines, you just have to accept
that you can't also have \r characters meaning something
other than newlines in your files. This is true regardless
of what programming language or I/O model is being used.

--
Greg
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