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/021081.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 - availablePaul Prescod paul@prescod.net
Wed, 13 Mar 2002 17:30:53 -0800
Fredrik Lundh wrote:
> 
> someone wrote:
> 
> > (alternate idea: instead of adding a non-standard mode
> > flag, how about a "textfile" constructor?)
> 
> with the following signature, perhaps:
> 
>     f = textfile(filename, mode="r", encoding=None)

Enthusiastic +1.

But I think that encoding should default to "ASCII". We also need to
discuss under what circumstances textfile("foo").read() returns Unicode
string versus 8-bit string.

 Paul Prescod



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