-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
sys.excepthook documentation doesn't mention that it isn't called for SystemExit #90915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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.) |
See also bpo-25489. |
…1357) Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…ok (pythonGH-31357) (cherry picked from commit 1294fce) Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…ok (pythonGH-31357) (cherry picked from commit 1294fce) Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
Thanks, fixed via #31357 and backports to 3.11. |
…ook (GH-31357) (#109083) Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…ook (GH-31357) (#109082) GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (cherry picked from commit 1294fce) Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
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:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: