]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-87320: In the code module, handle exceptions raised in sys.excepthook ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Aug 2024 07:26:52 +0000 (09:26 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Aug 2024 07:26:52 +0000 (07:26 +0000)
commit84c8cd0f3db37e8409303bd76d6d195d3a1ba6e4
treedf2c64f67f7cff00d1e49fba4ee1cf1f63f76090
parent1fd1c6c73890094410a4dcd6f216fc573ef57d6d
[3.13] gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456) (GH-122514)

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
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]