]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-76785: Improved Subinterpreters Compatibility with 3.12 (gh-115424)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 13 Feb 2024 21:56:49 +0000 (14:56 -0700)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 21:56:49 +0000 (14:56 -0700)
commit514b1c91b8651e8ab9129a34b7482033d2fd4e5b
tree11a091856f2b7f3ec65009b5b9de4e424a2a79bc
parent206f73dc5f1b4c3c81119808aa7fd9038661cf90
gh-76785: Improved Subinterpreters Compatibility with 3.12 (gh-115424)

For the most part, these changes make is substantially easier to backport subinterpreter-related code to 3.12, especially the related modules (e.g. _xxsubinterpreters). The main motivation is to support releasing a PyPI package with the 3.13 capabilities compiled for 3.12.

A lot of the changes here involve either hiding details behind macros/functions or splitting up some files.
12 files changed:
Include/internal/pycore_code.h
Include/internal/pycore_crossinterp.h
Include/internal/pycore_tstate.h
Makefile.pre.in
Modules/_interpreters_common.h [new file with mode: 0644]
Modules/_xxinterpchannelsmodule.c
Modules/_xxinterpqueuesmodule.c
Modules/_xxsubinterpretersmodule.c
Python/crossinterp.c
Python/crossinterp_data_lookup.h [new file with mode: 0644]
Python/crossinterp_exceptions.h [new file with mode: 0644]
Tools/c-analyzer/cpython/globals-to-fix.tsv