From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:23:08 +0000 (-0700) Subject: [3.11] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357... X-Git-Tag: v3.11.6~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=417a7b5b10c8b994dd41fc314404803fe1811421;p=thirdparty%2FPython%2Fcpython.git [3.11] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (#109083) Co-authored-by: Colin Watson Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index ecad0ed881da..ab198732a427 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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