sys.exit and exceptions (newbie question)
Fredrik Lundh
fredrik at effbot.org
Fri Feb 2 03:10:25 EST 2001
More information about the Python-list mailing list
Fri Feb 2 03:10:25 EST 2001
- Previous message (by thread): Naming conventions for path?
- Next message (by thread): sys.exit and exceptions (newbie question)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Wouters wrote: > You can use sys._exit(). This exits in a very abortive way -- right away, > dropping everything it's doing, without doing any kind of cleanup. only if you're not catching AttributeError, that is ;-) >>> import sys >>> sys._exit() Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: _exit (it's "os._exit(code)", not "sys._exit()") Cheers /F
- Previous message (by thread): Naming conventions for path?
- Next message (by thread): sys.exit and exceptions (newbie question)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list