◐ Shell
clean mode source ↗

bpo-32604: Clean up created subinterpreters before runtime finalization. by ericsnowcurrently · Pull Request #5709 · python/cpython

CPython crashes during finalization if any subinterpreters haven't been destroyed. From the perspective of the C-API this is reasonable. However, for Python bindings to that C-API, it is not. This patch fixes that by destroying any interpreter for which the Python-level ID object is garbage-collected.

https://bugs.python.org/issue32604