]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121060)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 26 Jun 2024 21:17:26 +0000 (15:17 -0600)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2024 21:17:26 +0000 (21:17 +0000)
commit4be1f37b20bd51498d3adf8ad603095c0f38d6e5
treea4131edeb97f36137280f6c487f24f0c4112397e
parent1c13b29d54ad6d7c9e030227d575ad7d21b4054f
gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121060)

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.
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