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: 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: <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sat, Apr 23, 2011 at 9:55 AM, Steven D'Aprano wrote: > On Sat, 23 Apr 2011 06:25:51 +1000, Chris Angelico wrote: > >> On Sat, Apr 23, 2011 at 12:08 AM, Mel wrote: >>> But sys.exit() doesn't return a string. =A0My 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