2.6 and sys.exit()

r rt8396 at gmail.com
Thu Nov 12 23:26:43 EST 2009


PS: Python even answers questions:

>>> import sys
>>> help(sys.exit)
Help on built-in function exit in module sys:

exit(...)
    exit([status])

    Exit the interpreter by raising SystemExit(status).
    If the status is omitted or None, it defaults to zero (i.e.,
success).
    If the status is numeric, it will be used as the system exit
status.
    If it is another kind of object, it will be printed and the system
    exit status will be one (i.e., failure).

Just think of Python as a programmers version of the "Magic 8 balls".



More information about the Python-list mailing list