[issue3359] add 'rbU' mode to open()

anatoly techtonik report at bugs.python.org
Wed Jul 16 07:08:17 CEST 2008


anatoly techtonik <techtonik at gmail.com> added the comment:

That's weird and the worst is that it is not documented. Manual says:

"If Python is built without universal newline support a mode with 'U' is
the same as normal text mode." 

but no information about what is "normal text mode" behaviour.

The way Python works that you describe is weird, but true. If developer
uses Windows platform - Unix and Windows files will be handled in the
same way, but not files from Mac platform. The worst that developer
can't know this, because he is unlikely to have any Mac files to test.

This behavior is like a long standing mine to collate Windows and Mac
Python users. Why not to fix it?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3359>
_______________________________________


More information about the Python-bugs-list mailing list