]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-76785: Show the Traceback for Uncaught Subinterpreter Exceptions (gh-113034)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 13 Dec 2023 00:00:54 +0000 (17:00 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 00:00:54 +0000 (00:00 +0000)
commit8a4c1f3ff1e3d7ed2e00e77b94056f9bb7f9ae3b
tree223a5a4761058341672e81141cf2ce6c90bce16d
parent7316dfb0ebc46aedf484c1f15f03a0a309d12a42
gh-76785: Show the Traceback for Uncaught Subinterpreter Exceptions (gh-113034)

When an exception is uncaught in Interpreter.exec_sync(), it helps to show that exception's error display if uncaught in the calling interpreter.  We do so here by generating a TracebackException in the subinterpreter and passing it between interpreters using pickle.
Include/internal/pycore_crossinterp.h
Lib/test/support/interpreters/__init__.py
Lib/test/test_interpreters/test_api.py
Lib/test/test_interpreters/utils.py
Python/crossinterp.c