[issue13119] Newline for print() is \n on Windows, and not \r\n as expected
Atsuo Ishimoto
report at bugs.python.org
Sun Aug 5 13:16:14 CEST 2012
Atsuo Ishimoto added the comment:
Antoine Pitrou added the comment:
>
>> We should not convert \n with -u command line option or PYTHONUNBUFFERED was set.
>
> Why that? What do universal newlines have to do with buffering?
Man page of Python says
-u Force stdin, stdout and stderr to be totally unbuffered. On
systems where it matters, also put stdin, stdout and stderr in
binary mode.
test_httpservers depends on this behavior, but was implemented as documented in Python 3.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13119>
_______________________________________
More information about the Python-bugs-list
mailing list