Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3696
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: py32 on windows - input() includes trailing \r |
| Date | 2011-04-20 14:58 +0200 |
| Organization | None |
| References | <iomjob$ibt$1@dough.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.641.1303304344.9059.python-list@python.org> (permalink) |
Frank Millman wrote: > 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? No, that's a bug: http://bugs.python.org/issue11272 IMO it's severe enough to warrant a brown-bag release...
Back to comp.lang.python | Previous | Next | Find similar
Re: py32 on windows - input() includes trailing \r Peter Otten <__peter__@web.de> - 2011-04-20 14:58 +0200
csiph-web