[issue11272] input() has trailing carriage return on windows

STINNER Victor report at bugs.python.org
Mon Feb 21 20:20:29 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Confirmed on Python 3.2 (winxp).
> The problem doesn't seem to exist on 3.1.3.

Can you try Python 3.1 with -u command line flag?

I changed Python 3.2 to always open all files in binary module, not only if -u flag is used. I had also to fix the parser to support \r\n newlines: it looks like I missed something in the parser.

----------

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


More information about the Python-bugs-list mailing list