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


Groups > comp.lang.python > #3691

py32 on windows - input() includes trailing \r

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '3.2': 0.07; 'python': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:windows': 0.09; '>>>': 0.12; 'len(x)': 0.16; 'subject: \\': 0.16; 'subject:() ': 0.16; 'linux,': 0.22; 'to:addr:python- list': 0.32; 'header:X-Complaints-To:1': 0.34; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'header:Received:5': 0.40; 'frank': 0.60; 'received:41': 0.70
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From "Frank Millman" <frank@chagford.com>
Subject py32 on windows - input() includes trailing \r
Date Wed, 20 Apr 2011 14:31:50 +0200
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 41-132-50-34.dsl.mweb.co.za
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.3790.4657
X-MimeOLE Produced By Microsoft MimeOLE V6.00.3790.4841
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.639.1303302750.9059.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 82.94.164.166
X-Trace 1303302750 news.xs4all.nl 41110 [::ffff:82.94.164.166]:44696
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3691

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web