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


Groups > comp.lang.python > #44125

Re: Weird behaviour?

References <bd744d80-9abe-439e-a193-7db869d4a027@googlegroups.com> <mailman.892.1366592174.3114.python-list@python.org> <5174900e$0$29977$c3e8da3$5496439d@news.astraweb.com> <fea5929b-34ca-4b32-9b9b-66f5a4a6333a@c14g2000yqh.googlegroups.com> <603c9915-54a8-415e-a826-e3e73c5dcab3@googlegroups.com>
Date 2013-04-23 10:04 +1000
Subject Re: Weird behaviour?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.941.1366675469.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Apr 23, 2013 at 9:06 AM,  <jussij@zeusedit.com> wrote:
> On Tuesday, April 23, 2013 12:29:57 AM UTC+10, nn wrote:
>
>> Maybe it is related to this bug?
>>
>> http://bugs.python.org/issue11272
>
> I'm running Python 2.7.2 (on Windows) and that version doesn't appear to have that bug:
>
>   Python 2.7.2 (default, Apr 23 2013, 11:49:52) [MSC v.1500 32 bit (Intel)] on win32
>   Type "help", "copyright", "credits" or "license" for more information.
>   >>> print(repr(input()))
>   "testing"
>   'testing'
>   >>>

Careful there; go with raw_input() on Py2. And then it does happen.

ChrisA

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


Thread

Weird behaviour? jussij@zeusedit.com - 2013-04-21 17:37 -0700
  Re: Weird behaviour? Chris Angelico <rosuav@gmail.com> - 2013-04-22 10:56 +1000
    Re: Weird behaviour? jussij@zeusedit.com - 2013-04-21 18:11 -0700
    Re: Weird behaviour? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-22 01:19 +0000
      Re: Weird behaviour? nn <pruebauno@latinmail.com> - 2013-04-22 07:29 -0700
        Re: Weird behaviour? jussij@zeusedit.com - 2013-04-22 16:06 -0700
          Re: Weird behaviour? Chris Angelico <rosuav@gmail.com> - 2013-04-23 10:04 +1000
        Re: Weird behaviour? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-23 00:31 +0000
  Re: Weird behaviour? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-22 01:05 +0000
    Re: Weird behaviour? jussij@zeusedit.com - 2013-04-21 18:14 -0700
    Re: Weird behaviour? Chris Angelico <rosuav@gmail.com> - 2013-04-22 11:13 +1000

csiph-web