[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)
R. David Murray
report at bugs.python.org
Thu Jul 17 16:35:50 CEST 2014
R. David Murray added the comment:
This is the documented behavior of the -u option. It puts the streams in binary mode "on systems where it matters", which would be windows. That is, universal newline processing is disabled when you use -u.
Note that this is no longer an issue in python3: there, -u only affects buffering, and not the binary/text mode (because in python3 there is always a distinction between binary and text mode, regardless of platform).
----------
nosy: +r.david.murray
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21946>
_______________________________________
More information about the Python-bugs-list
mailing list