]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-90915: Document that SystemExit doesn't trigger sys.excepthook (#31357)
authorColin Watson <cjwatson@debian.org>
Thu, 7 Sep 2023 13:14:27 +0000 (14:14 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 13:14:27 +0000 (13:14 +0000)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/sys.rst

index ba8d80bccbd8945a0a4e03b5850e453420d84c47..c116f4b9b00825b4d3c2c04114ee47cdfbec359b 100644 (file)
@@ -378,7 +378,7 @@ always available.
 
    This function prints out a given traceback and exception to ``sys.stderr``.
 
-   When an exception is raised and uncaught, the interpreter calls
+   When an exception other than :exc:`SystemExit` is raised and uncaught, the interpreter calls
    ``sys.excepthook`` with three arguments, the exception class, exception
    instance, and a traceback object.  In an interactive session this happens just
    before control is returned to the prompt; in a Python program this happens just