Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1294fce

Browse files
cjwatsonkumaraditya303hugovk
authored
GH-90915: Document that SystemExit doesn't trigger sys.excepthook (#31357)
Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 6b15ff5 commit 1294fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
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)