readling newlines

Francis Avila francisgavila at yahoo.com
Sun Jan 11 20:03:26 CET 2004


Samuel Walters wrote in message ...
>
>Not quite sure what "U" mode is, but try adding the "b" mode when opening

FYI, 'U' is universal newline mode, which will quietly convert the newline
convention of a file into '\n'.  I think it has some rudamentary ability to
handle mixed-convention newline ugliness.

See the documentation on file() in the library reference, and there's a PEP
on the feature, too.

--
Francis Avila




More information about the Python-list mailing list