How can I make sure my python exit

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Apr 4 22:46:53 CEST 2007


> Typically when the last piece of code executes, the program ends. You
> could import sys and explicitly exit by calling sys.exit(0).
> Mike

raise SystemExit
works too.

Bye,
bearophile




More information about the Python-list mailing list