exit()

Jean-Paul Calderone exarkun at divmod.com
Mon Sep 8 15:09:38 EDT 2008


On Mon, 08 Sep 2008 21:03:48 +0200, Christian Heimes <lists at cheimes.de> wrote:
>Gary Robinson wrote:
>>In Python 2.5.2, I notice that, in the interpreter or in a script, I can 
>>exit with:
>>
>>     exit()
>
>The exit callable is defined in the site module. Check out site.py! It 
>shouldn't be used in code. It was added to help newbies to 'escape' from an 
>interactive Python shell.
>

It works.  Why shouldn't it be used?

Jean-Paul



More information about the Python-list mailing list