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

anatoly techtonik report at bugs.python.org
Thu Jul 24 19:32:58 CEST 2008


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

This '\r' makes things worse. I am also on Windows and didn't thought
that "rb" processes '\r\n' linefeeds as a side-effect of '\n' being the
last character. Thanks.

newline='' is just what I need. I guess there is no alternative to it in
2.5 series except splitting lines returned from binary read manually.
What about file.newlines attribute - is it preserved in 2.6/Py3k?

BTW, it would be nice to have this example in manual.

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


More information about the Python-bugs-list mailing list