[issue11642] regression: input() doesn't strip a trailing newline on Windows

anatoly techtonik report at bugs.python.org
Wed Mar 23 00:35:27 CET 2011


New submission from anatoly techtonik <techtonik at gmail.com>:

Docs say that input() should strip trailing newline, but on Windows it doesn't happen.
http://docs.python.org/py3k/library/functions.html#input


Python 2.x Windows
>>> raw_input()
xyz
'xyz'
>>>

Python 3.2 Windows
>>> input()
zyx
'zyx\r'
>>>

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 131812
nosy: techtonik
priority: normal
severity: normal
status: open
title: regression: input() doesn't strip a trailing newline on Windows
versions: Python 3.2

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


More information about the Python-bugs-list mailing list