]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-87320: In the code module, handle exceptions raised in sys.excepthook ...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 31 Jul 2024 11:54:06 +0000 (14:54 +0300)
committerGitHub <noreply@github.com>
Wed, 31 Jul 2024 11:54:06 +0000 (11:54 +0000)
commit5377f55b4e022041b7b57b5489c66c9b3c046c7e
tree8a1fa137edf1c87bdf82d1476f5ededdc8c3e1a1
parentef21e48cac548025aa76704b84b489f0c111e1de
[3.12] gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456) (GH-122515)

Before, the exception caused by calling non-default sys.excepthook
in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.
(cherry picked from commit bd3d31f380cd451a4ab6da5fbfde463fed95b5b5)

Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
Lib/code.py
Lib/test/test_code_module.py
Misc/NEWS.d/next/Library/2024-07-30-14-46-16.gh-issue-87320.-Yk1wb.rst [new file with mode: 0644]