[New-bugs-announce] [issue11278] raw_input() and input() not stripping EOL on win32

Dave Flogeras report at bugs.python.org
Tue Feb 22 01:47:04 CET 2011


New submission from Dave Flogeras <dflogeras2 at gmail.com>:

>From the python prompt, raw_input() (2.7.1) and input (3.2.0) behave as documented (they strip the trailing EOL chars)

However the two line test program:
x = raw_input() # or input() in 3.2.x
print( repr( x ))

And then run from the command line prompt, .\test.py, shows 'mytest\r' including the EOL char.

----------
messages: 129017
nosy: Dave.Flogeras
priority: normal
severity: normal
status: open
title: raw_input() and input() not stripping EOL on win32
versions: Python 2.7, Python 3.2

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


More information about the New-bugs-announce mailing list