sys.exit and exceptions (newbie question)
Fredrik Lundh
fredrik at effbot.org
Thu Feb 1 14:54:07 EST 2001
Victor Muslin wrote:
> What is a pythonic idiom for forcing an immediate program termination?
not sure there is one, but if you insist, you
can use:
# terminate without cleaning up
os._exit(errcode)
or
# force coredump
os.abort()
Cheers /F
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list