]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139098: Use multiphase initialization in `_testcapi` (GH-139102)
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 18 Sep 2025 11:00:50 +0000 (07:00 -0400)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 11:00:50 +0000 (11:00 +0000)
commit49f1c302df2621dcc2aa0386d90ed8502e0ed024
tree8bc5794bc29ae4b42d55d188c8321b9deea631f5
parent70ad1b30dfa9dad920029f8e0e63b3251c3195ca
gh-139098: Use multiphase initialization in `_testcapi` (GH-139102)

Use multiphase initialization in the _testcapi module to allow loading in subinterpreters. The isolation here isn't perfect as there's still some use of globals, but _testcapi should generally work in other interpreters.
Modules/_testcapi/heaptype.c
Modules/_testcapimodule.c