]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38858: Fix Py_Finalize() when called from a subinterpreter (GH-17297)
authorVictor Stinner <vstinner@python.org>
Wed, 20 Nov 2019 17:39:12 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 17:39:12 +0000 (18:39 +0100)
commitb93f31fcd9f10b213c614d4944baf9ca2df2016c
tree41df423e9ce834db623f3c14e24fca756ab45b4f
parentde148f263fba75cd10d2cb010fe9c495cee4ec83
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.
Python/pylifecycle.c