]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456) 122501/head
authorCF Bolz-Tereick <cfbolz@gmx.de>
Wed, 31 Jul 2024 10:33:29 +0000 (12:33 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Jul 2024 10:33:29 +0000 (10:33 +0000)
commitbd3d31f380cd451a4ab6da5fbfde463fed95b5b5
treeeef67c37d5ff5ef20ac7b8a972bd9fe73d910b00
parente60ee11cb51b87deeb22ad125717bd0d0dc10fa8
gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456)

Before, the exception caused by calling non-default sys.excepthook
in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.
Lib/code.py
Lib/test/test_code_module.py
Lib/test/test_pyrepl/test_pyrepl.py
Misc/NEWS.d/next/Library/2024-07-30-14-46-16.gh-issue-87320.-Yk1wb.rst [new file with mode: 0644]