On Sat, Apr 23, 2011 at 9:55 AM, Steven D'Aprano
<steve+comp.lang.pyt...@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 <mwil...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to