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

Fredrik Lundh fredrik@pythonware.com
Thu, 14 Mar 2002 01:16:47 +0100


someone wrote:

> jack wrote:
> > - open(filename, 'U') is now the way to open files for universal 
> > newline reading because 't' may have a use on Windows;
> 
> "U" as in Ugly?

but except for the mode parameter, the "newlines" hack,
and possibly some intricate detail that I'm missing at this
late hour, I'm all +1 on this proposal.

(alternate idea: instead of adding a non-standard mode
flag, how about a "textfile" constructor?)

</F>