sys.exit versus raise SystemExit
Will McGugan
will at willNOmcguganSPAM.com
Mon Jan 8 12:27:28 EST 2007
wittempj at hotmail.com wrote:
>
> sys.exit() raises a SystemExit, see
> http://docs.python.org/lib/module-sys.html
>
Oh I know. I was just wondering if there was some sort of subtle 'best
practice' recommendation that I wasnt aware of for using sys.exit over
raising the exception manually. In the same way that 'open' is prefered
over 'file', even though they appear to do the same thing.
Will
--
blog: http://www.willmcgugan.com
More information about the Python-list
mailing list