]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121067)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Jun 2024 21:56:13 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2024 21:56:13 +0000 (21:56 +0000)
commitc83997476f9bcb28af02296c3c74c1549dcd9f35
tree29cac01732fa6a6b7def0d1c1513f857a8317a20
parentc052b192aaa05eeedb1bd50e0658e2d836ffa581
[3.13] gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121067)

This change makes things a little less painful for some users.  It also fixes a failing assert (gh-120765), by making sure all subinterpreters are destroyed before the main interpreter.  As part of that, we make sure Py_Finalize() always runs with the main interpreter active.

(cherry picked from commit 4be1f37b20bd51498d3adf8ad603095c0f38d6e5, AKA gh-121060)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2024-06-26-13-42-36.gh-issue-113433.xKAtLB.rst [new file with mode: 0644]
Misc/NEWS.d/next/Core and Builtins/2024-06-26-14-09-31.gh-issue-120838.nFeTL9.rst [new file with mode: 0644]
Python/pylifecycle.c