[3.12] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (#109082)

GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357)
(cherry picked from commit 1294fcede0)

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>
This commit is contained in:
Miss Islington (bot) 2023-09-08 06:22:08 -07:00 committed by GitHub
parent 736c413977
commit 26f42b34f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,7 +378,7 @@ always available.
This function prints out a given traceback and exception to ``sys.stderr``. 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 ``sys.excepthook`` with three arguments, the exception class, exception
instance, and a traceback object. In an interactive session this happens just 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 before control is returned to the prompt; in a Python program this happens just