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/2002-March/021128.html below:

[Python-Dev] Next version of PEP278 - universal newline support

[Python-Dev] Next version of PEP278 - universal newline support - available [Python-Dev] Next version of PEP278 - universal newline support - availableGuido van Rossum guido@python.org
Thu, 14 Mar 2002 13:33:45 -0500
> The PEP seems to assume that the changed behaviour only apply to
> .readline() and friends. I'm sure that is obvious to you, but for
> historical reasons beyound my control, the universal newline support in
> jython normalize all lineendings to a newline for all reads on text
> files. I think jython is wrong here and your PEP is better.

I hadn't noticed this.  I'm not so sure.  I would like to be able to
write

  f = open(filename, 'U')
  data = f.read()

and then use some regular expression or whatever to munge the text.
It would be nice if I would still get universal newline support in
this case.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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