HOWTO: exit

François Pinard pinard at iro.umontreal.ca
Wed Jul 25 10:57:27 EDT 2001


[Brendan O'Connor]

> import sys
> sys.exit()

I'm curious.  What about "raise SystemExit"?  Does it have the same effect?
It looks cleaner to me, as one does not even need to import "sys".

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list