◐ Shell
clean mode source ↗

bpo-38858: Fix Py_Finalize() when called from a subinterpreter by vstinner · Pull Request #17297 · python/cpython

Use _Py_IsMainInterpreter() in Py_Initialize() and Py_Finalize() to
detect if the current interpreter is the main interpreter or not.

jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request

Dec 5, 2019
…nGH-17297)

Use _Py_IsMainInterpreter() in Py_Initialize() and Py_Finalize() to
detect if the current interpreter is the main interpreter or not.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
…nGH-17297)

Use _Py_IsMainInterpreter() in Py_Initialize() and Py_Finalize() to
detect if the current interpreter is the main interpreter or not.