Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3691 > unrolled thread

py32 on windows - input() includes trailing \r

Started by"Frank Millman" <frank@chagford.com>
First post2011-04-20 14:31 +0200
Last post2011-04-20 14:31 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  py32 on windows - input() includes trailing \r "Frank Millman" <frank@chagford.com> - 2011-04-20 14:31 +0200

#3691 — py32 on windows - input() includes trailing \r

From"Frank Millman" <frank@chagford.com>
Date2011-04-20 14:31 +0200
Subjectpy32 on windows - input() includes trailing \r
Message-ID<mailman.639.1303302750.9059.python-list@python.org>
Hi all

On linux, python 3.2 -

>>> x = input()
xyz
>>> len(x)
3
>>> x
'xyz'

on windows, python 3.2 -

>>> x = input()
xyz
>>> len(x)
4
>>> x
'xyz\r'

Is this expected behaviour?

Frank Millman

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web