2.6 and sys.exit()
hetchkay
hetchkay at gmail.com
Thu Nov 12 23:32:38 EST 2009
Hello,
Thanks for your help.
I know what SystemExit is. In 2.5 as well SystemExit is raised when
sys.exit() is called. For example:
try:
import sys
sys.exit(0)
except SystemExit:
print "system exit raised"
raise
But I don't understand why the interpreter does not exit in 2.6 but
does exit in 2.5. Well, I do not need to understand that but I need to
know how to get the interpreter to exit in 2.6.
Regards,
Krishnan
More information about the Python-list
mailing list