]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-81057: Move PyImport_Inittab to _PyRuntimeState (gh-99402)
authorEric Snow <ericsnowcurrently@gmail.com>
Sat, 12 Nov 2022 00:06:05 +0000 (17:06 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2022 00:06:05 +0000 (17:06 -0700)
commit7f3a4b967cfb1596a3fda6c34f900f8586b16700
treec4381e2cdfce4f636d2eff0288bf5ec59c74c44d
parent67807cfc87135fdce4992d38d2ffe3e44747e73b
gh-81057: Move PyImport_Inittab to _PyRuntimeState (gh-99402)

We actually don't move PyImport_Inittab.  Instead, we make a copy that we keep on _PyRuntimeState and use only that after Py_Initialize().  We also prevent folks from modifying PyImport_Inittab (the best we can) after that point.

https://github.com/python/cpython/issues/81057
Include/cpython/import.h
Include/internal/pycore_import.h
Include/internal/pycore_pylifecycle.h
Misc/NEWS.d/next/Core and Builtins/2022-11-11-14-48-17.gh-issue-81057.ik4iOv.rst [new file with mode: 0644]
Python/import.c
Python/pylifecycle.c
Python/sysmodule.c
Tools/c-analyzer/cpython/globals-to-fix.tsv
Tools/c-analyzer/cpython/ignored.tsv