exit()

Christian Heimes lists at cheimes.de
Mon Sep 8 15:03:48 EDT 2008


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.

Christian




More information about the Python-list mailing list