Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3897
| References | (1 earlier) <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 | 2011-04-23 10:07 +1000 |
| Subject | Re: Input() in Python3 |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.768.1303517252.9059.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar
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