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


Groups > comp.lang.python > #44125

Re: Weird behaviour?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.037
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'win32': 0.03; 'happen.': 0.09; 'python': 0.11; '2.7.2': 0.16; '23,': 0.16; 'bug:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'bit': 0.19; '>>>': 0.22; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'url:bugs': 0.29; 'am,': 0.29; 'related': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(on': 0.31; 'bug?': 0.31; 'url:python': 0.33; 'running': 0.33; 'maybe': 0.34; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'more': 0.64; "'testing'": 0.84; '2013,': 0.91; 'careful': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=BFgYMkddPHi5eQai6pUEMXydpRsMwvfn9O2eVI08kIM=; b=maZqPdmKnQY3RtSd1WyWqc5Kdb2VDtGSOykcVzMgzKMZPwuCSdSSu4jurGipW6c5pg emuUUGWHpDHwyECcrfBjeL+7cCfo1JhuIjwsEczLoCjVnYg7LvzmzUDdEHAonsNi3jIL 41JO4j0TH+LaTtPQq+5It/pUsdUuDi8C/mI22uhdi+kfw/YyvuF21fiytS2c/fd+Sofv ijCWPqmD0VcRzAXyrhAoVcxXIk2AN9DGruR89UbaXkswi3ITZc/QJjPgnDYUtniCpfm0 mUSP4hl0i11aI98x0Dfj5PBGDTUDHN9f64FS2r/76vR51GSs9I7dqUBDi08e/TAIUrY5 1/Rw==
MIME-Version 1.0
X-Received by 10.58.34.12 with SMTP id v12mr20454111vei.55.1366675467265; Mon, 22 Apr 2013 17:04:27 -0700 (PDT)
In-Reply-To <603c9915-54a8-415e-a826-e3e73c5dcab3@googlegroups.com>
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 Tue, 23 Apr 2013 10:04:27 +1000
Subject Re: Weird behaviour?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.941.1366675469.3114.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366675469 news.xs4all.nl 2247 [2001:888:2000:d::a6]:53014
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44125

Show key headers only | 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