[Tutor] a graceful program exit

Bill Allen wallenpb at gmail.com
Thu Aug 12 05:42:17 CEST 2010


I have only learned a couple of ways to cause a Python program to exit:
sys.exit(0)  &  raise.SystemExit .  I am using this in a try/except block.
Which is preferred?  Are there other, better ways?


Thanks,
Bill Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100811/4a7ce149/attachment.html>


More information about the Tutor mailing list