[issue3359] add 'rbU' mode to open()
Skip Montanaro
report at bugs.python.org
Tue Jul 15 13:47:48 CEST 2008
Skip Montanaro <skip at pobox.com> added the comment:
The whole idea of universal newline mode is that the various possible
line endings ('\r', '\n' and '\r\n') are all mapped to '\n' precisely
so the user doesn't have to detect and fiddle with them. Using 'b' and
'U' together makes no sense.
* If you really want to see the line endings use 'rb'.
* If you don't care about the line endings regardless of source, use 'rU'.
* Otherwise use 'r'.
----------
nosy: +skip.montanaro
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3359>
_______________________________________
More information about the Python-bugs-list
mailing list