]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Sep 2023 13:22:08 +0000 (06:22 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2023 13:22:08 +0000 (15:22 +0200)
GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357)
(cherry picked from commit 1294fcede09af6c781553b7a3a6ff612c7dfa431)

Co-authored-by: Colin Watson <cjwatson@debian.org>
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 20a337bdf0f59535107eeed0e9846ad1634f7de1..26bee990cf5d7fc93e8ff761ac2a864dc4b2c5de 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