sys.exit versus raise SystemExit

wittempj@hotmail.com martin.witte at gmail.com
Mon Jan 8 17:19:11 CET 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