]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-76785: Improved Subinterpreters Compatibility with 3.12 (2/2) (gh-126707)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 12 Nov 2024 17:41:51 +0000 (10:41 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2024 17:41:51 +0000 (10:41 -0700)
commit73cf0690997647c9801d9ebba43305a868d3b776
treef93332064f5d079cc7d3b523d8f728b4354f54f3
parent6b2a19681eb5c132caa73a268724c7d502794867
gh-76785: Improved Subinterpreters Compatibility with 3.12 (2/2) (gh-126707)

These changes makes it easier to backport the _interpreters, _interpqueues, and _interpchannels modules to Python 3.12.

This involves the following:

* add the _PyXI_GET_STATE() and _PyXI_GET_GLOBAL_STATE() macros
* add _PyXIData_lookup_context_t and _PyXIData_GetLookupContext()
* add _Py_xi_state_init() and _Py_xi_state_fini()
Include/internal/pycore_crossinterp.h
Include/internal/pycore_crossinterp_data_registry.h
Modules/_interpchannelsmodule.c
Modules/_interpqueuesmodule.c
Modules/_interpreters_common.h
Modules/_interpretersmodule.c
Modules/_testinternalcapi.c
Python/crossinterp.c
Python/crossinterp_data_lookup.h