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
…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
…nGH-17297) Use _Py_IsMainInterpreter() in Py_Initialize() and Py_Finalize() to detect if the current interpreter is the main interpreter or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters