Skip to content

Commit 26f42b3

Browse files
miss-islingtoncjwatsonkumaraditya303hugovk
authored
[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 1294fce) Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 736c413 commit 26f42b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sys.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ always available.
378378

379379
This function prints out a given traceback and exception to ``sys.stderr``.
380380

381-
When an exception is raised and uncaught, the interpreter calls
381+
When an exception other than :exc:`SystemExit` is raised and uncaught, the interpreter calls
382382
``sys.excepthook`` with three arguments, the exception class, exception
383383
instance, and a traceback object. In an interactive session this happens just
384384
before control is returned to the prompt; in a Python program this happens just

0 commit comments

Comments
 (0)