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

Duncan Booth report at bugs.python.org
Wed Feb 23 10:20:36 CET 2011


Duncan Booth <kupuguy at gmail.com> added the comment:

> If anyone knows how to reproduce the two bugs with a short Python
> script, I can try to convert it into a test.

If you don't mind kicking off some sub-processes then here's a script that shows the bugs.

I couldn't figure out how to do a script that would work on Python 3.1 but fail on Python 3.2, because I think to show the problem you have to use the shell to pipe data and Popen on Python 3.1 quotes the pipe character.

----------
Added file: http://bugs.python.org/file20857/stdintests.py

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


More information about the Python-bugs-list mailing list