]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Sep 2023 13:23:08 +0000 (06:23 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 13:23:08 +0000 (13:23 +0000)
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 ecad0ed881da45b1386eca6c298f7d783c9b4cd0..ab198732a427ea33d8646195a3a4a4f1b0cf67d0 100644 (file)
@@ -374,7 +374,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