]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private _PyInterpreterState functions (#106325)
authorVictor Stinner <vstinner@python.org>
Sun, 2 Jul 2023 01:39:38 +0000 (03:39 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 01:39:38 +0000 (01:39 +0000)
commit8571b271e7d16fe87d669a2e1e50f5ae3732bb31
treeeb2adf17a72bab4efbb439fa2f74cacdaa4ca5e9
parentfeb51f3a6443d7c0148e2e7be2ed58b4c69fa265
gh-106320: Remove private _PyInterpreterState functions (#106325)

Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
Include/cpython/pystate.h
Include/internal/pycore_interp.h
Include/internal/pycore_pystate.h
Modules/_testcapimodule.c
Modules/_testinternalcapi.c
Modules/_xxsubinterpretersmodule.c
Python/compile.c
Python/frozenmain.c
Python/pystate.c