diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-08 13:22:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:22:08 (GMT) |
commit | 26f42b34f1e67b286655f79d73fd249935d46d12 (patch) | |
tree | aab2932f57c65a6a475c119683edda912dc299c3 /Doc | |
parent | 736c413977730fa590a759d2eca3d2ac611fd5ec (diff) | |
download | cpython-26f42b34f1e67b286655f79d73fd249935d46d12.zip cpython-26f42b34f1e67b286655f79d73fd249935d46d12.tar.gz cpython-26f42b34f1e67b286655f79d73fd249935d46d12.tar.bz2 |
[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 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>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 20a337b..26bee99 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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 |