You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sys.excepthook documentation doesn't mention that it isn't called for SystemExit #90915
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-02-15.12:10:41.510>labels= ['3.11', 'docs']
title="sys.excepthook documentation doesn't mention that it isn't called for SystemExit"updated_at=<Date2022-03-20.09:50:38.228>user='https://github.com/cjwatson'
In https://bugs.debian.org/1005803, Matthew Vernon reports that the library documentation for sys.excepthook doesn't mention the detail that that sys.excepthook isn't called for uncaught SystemExit exceptions, although help(sys) does mention this.
(He also mentions that help(sys.excepthook) doesn't mention this. I think this would make less sense, since that gets the docstring of a particular implementation of an excepthook - on a given system it might not be Python's built-in version, for instance. But adding information to the main library documentation seems reasonable.)
Activity
cjwatson commentedon Feb 15, 2022
In https://bugs.debian.org/1005803, Matthew Vernon reports that the library documentation for sys.excepthook doesn't mention the detail that that sys.excepthook isn't called for uncaught SystemExit exceptions, although help(sys) does mention this.
(He also mentions that help(sys.excepthook) doesn't mention this. I think this would make less sense, since that gets the docstring of a particular implementation of an excepthook - on a given system it might not be Python's built-in version, for instance. But adding information to the main library documentation seems reasonable.)
iritkatriel commentedon Mar 20, 2022
See also bpo-25489.
GH-90915: Document that SystemExit doesn't trigger sys.excepthook (#3…
pythonGH-90915: Document that SystemExit doesn't trigger sys.exceptho…
pythonGH-90915: Document that SystemExit doesn't trigger sys.exceptho…
hugovk commentedon Sep 7, 2023
Thanks, fixed via #31357 and backports to 3.11.
[3.11] GH-90915: Document that SystemExit doesn't trigger sys.excepth…
[3.12] GH-90915: Document that SystemExit doesn't trigger sys.excepth…