mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
9243a4b933
In the _interpreters module, we use PyEval_EvalCode() to run Python code in another interpreter. However, when the process receives a KeyboardInterrupt, PyEval_EvalCode() will jump straight to finalization rather than returning. This prevents us from cleaning up and marking the thread as "not running main", which triggers an assertion in PyThreadState_Clear() on debug builds. Since everything else works as intended, remove that assertion.
Miscellaneous source files for the main Python shared library