Input() in Python3

Chris Angelico rosuav at
Sat Apr 23 02:07:29 CEST 2011

On Sat, Apr 23, 2011 at 9:55 AM, Steven D'Aprano
<steve+comp.lang.python at> wrote:
> On Sat, 23 Apr 2011 06:25:51 +1000, Chris Angelico wrote:
>> On Sat, Apr 23, 2011 at 12:08 AM, Mel <mwilson at> 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

More information about the Python-list mailing list