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


Groups > comp.lang.python > #3897

Re: Input() in Python3

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.031
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'string.': 0.04; 'exception,': 0.07; 'raises': 0.07; '>>>': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'eval': 0.16; 'integer.': 0.16; 'subject:() ': 0.16; 'subject:Python3': 0.16; 'sure,': 0.16; 'terminated.': 0.16; 'header:In-Reply-To:1': 0.22; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'sat,': 0.29; 'to:addr :python-list': 0.32; 'asking': 0.32; 'usual': 0.32; 'caught': 0.35; 'quite': 0.36; 'case,': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'steven': 0.38; 'received:google.com': 0.38; 'user': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; "it's": 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'anything.': 0.72; 'boom.': 0.84; 'mechanism.': 0.84; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84; 'technically': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=nt50xeLcPweRN+Q/uyUNQNtuTloRPrZvrFqm+rGptU8=; b=nZ2FFDNpUJ5u5jOvCRwJR+II0bkwrH+HhLGKMUUv+eHxDupZVrhwVg534bzYMbD2Wj f0wvL5gB2Ah+xs+2hiJw43WLS1pOhVD+c3S9pOo2CX5vAgdsG8Y523DSk7czzVZ2TMnQ QWUriBcJk3M18LPzYiihl+Wmbcw76Utr6h7Eg=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BuUxGbxz1ycQBEcbCrTDKBGL5TzZTaMGkzSjNCgaR+CC65Zxc8VPE6wvp5SjpfraMM 1I6jQfW9gp25AJEXG5BkUq2kFPfAJEPtai4W9CCspfnkWjBFkOB0oLKLWrkLkvQwcTaH bJPJTBxUVcoJWOApIg1akoPy+XrFfimRmqKLo=
MIME-Version 1.0
In-Reply-To <4db21563$0$29978$c3e8da3$5496439d@news.astraweb.com>
References <I89sp.39115$yp3.5013@newsfe09.iad> <BANLkTimJ3ZXNK_0jk_yeinmUNo8s1aQfSw@mail.gmail.com> <mailman.746.1303480346.9059.python-list@python.org> <ios24t$k72$1@speranza.aioe.org> <mailman.764.1303503953.9059.python-list@python.org> <4db21563$0$29978$c3e8da3$5496439d@news.astraweb.com>
Date Sat, 23 Apr 2011 10:07:29 +1000
Subject Re: Input() in Python3
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
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.768.1303517252.9059.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 82.94.164.166
X-Trace 1303517252 news.xs4all.nl 41114 [::ffff:82.94.164.166]:56628
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3897

Show key headers only | View raw


On Sat, Apr 23, 2011 at 9:55 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Sat, 23 Apr 2011 06:25:51 +1000, Chris Angelico wrote:
>
>> On Sat, Apr 23, 2011 at 12:08 AM, Mel <mwilson@the-wire.com> wrote:
>>> But sys.exit() doesn't return a string.  My fave is
>>
>> It doesn't return _at all_. Boom, process terminated.
>
>
> Technically it raises an exception, which can then be caught by the usual
> exception-handling mechanism. So it's not quite Boom.

Sure, but it still doesn't return anything. In any case, it's not
something you want to eval casually in the middle of asking the user
for an integer.

Chris Angelico

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


Thread

Input() in Python3 harrismh777 <harrismh777@charter.net> - 2011-04-22 01:22 -0500
  Re: Input() in Python3 Chris Angelico <rosuav@gmail.com> - 2011-04-22 16:49 +1000
  Re: Input() in Python3 Chris Angelico <rosuav@gmail.com> - 2011-04-22 16:50 +1000
  Re: Input() in Python3 Chris Rebert <clp2@rebertia.com> - 2011-04-22 00:46 -0700
    Re: Input() in Python3 harrismh777 <harrismh777@charter.net> - 2011-04-23 20:03 -0500
  Re: Input() in Python3 Westley Martínez <anikom15@gmail.com> - 2011-04-22 06:52 -0700
    Re: Input() in Python3 Mel <mwilson@the-wire.com> - 2011-04-22 10:08 -0400
      Re: Input() in Python3 Chris Angelico <rosuav@gmail.com> - 2011-04-23 06:25 +1000
        Re: Input() in Python3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-22 23:55 +0000
          Re: Input() in Python3 Chris Angelico <rosuav@gmail.com> - 2011-04-23 10:07 +1000
      Re: Input() in Python3 Westley Martínez <anikom15@gmail.com> - 2011-04-23 12:33 -0700
        Re: Input() in Python3 Mel <mwilson@the-wire.com> - 2011-04-25 12:50 -0400

csiph-web