sys.exit
Matthew Dixon Cowles
matt at mondoinfo.com
Mon Apr 24 20:25:54 EDT 2000
In article <3904C35C.B16BDE75 at mindspring.com>, Chuck Esterbrook
<echuck at mindspring.com> wrote:
> The short question:
>
> If I catch a SystemExit exception (because of an invocation of
> sys.exit(code)), how do I examine the argument to sys.exit()?
[snip]
try:
sys.exit(42)
except SystemExit,detail:
print detail
Getting access to many exceptions' arguments works similarly.
Regards,
Matt
More information about the Python-list
mailing list