bpo-38858: Fix Py_Finalize() when called from a subinterpreter (GH-17297)
Use _Py_IsMainInterpreter() in Py_Initialize() and Py_Finalize() to detect if the current interpreter is the main interpreter or not.
V
Victor Stinner committed
b93f31fcd9f10b213c614d4944baf9ca2df2016c
Parent: de148f2
Committed by GitHub <noreply@github.com>
on 11/20/2019, 5:39:12 PM