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

Fredrik Lundh fredrik@pythonware.com
Thu, 14 Mar 2002 11:35:08 +0100


just wrote:


> Am I the only one who wants universal newlines *without* a new
> mode character?  Ideally I'd like *existing* code that works with
> text files to accept any line ending.

on a Unix box, does the following piece of code
open a text file or a binary data file?

    f =3D open(filename)

</F>