[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Brian Hare

New submission from Brian Hare ha...@umkc.edu:

In Windows, using python 3.2, the built-input function does not strip the 
trailing '\r' from the string input:

Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 input('Enter  ')
Enter  abcde
'abcde\r'


This behavior does not appear in IDLE but does appear in a free-standing 
command window. 

While the docs only say that the trailing newline is dropped, the 2.6 docs for 
raw_input have exactly the same wording and the carriage return is dropped:

Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 raw_input('Enter  ')
Enter  abcde
'abcde'


--
components: Windows
messages: 139379
nosy: BKHare
priority: normal
severity: normal
status: open
title: Input function does not strip trailing '\r' from string input
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Already fixed with issue11272, which will be included in 3.2.1 and 3.3.

--
nosy: +amaury.forgeotdarc
resolution:  - out of date
status: open - closed
superseder:  - input() has trailing carriage return on windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12435
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com