sys.exit versus raise SystemExit

wittempj@hotmail.com martin.witte at gmail.com
Mon Jan 8 11:19:11 EST 2007


Will McGugan wrote:
> Hi,
>
> Is there any difference between calling sys.exit() and raise SystemExit?
> Should I prefer one over the other?
>
> Regards,
>
> Will McGugan
> --
> blog: http://www.willmcgugan.com

sys.exit() raises a SystemExit, see
http://docs.python.org/lib/module-sys.html




More information about the Python-list mailing list