]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38858: _PyImport_FixupExtensionObject() handles subinterpreters (GH-17350)
authorVictor Stinner <vstinner@python.org>
Fri, 22 Nov 2019 17:52:27 +0000 (18:52 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2019 17:52:27 +0000 (18:52 +0100)
commit82c83bd907409c287a5bd0d0f4598f2c0538f34d
tree0f7b4dcc1221e93cf9ad8fd704c5cf90e4dac11a
parent42bc60ead39c7be9f6bb7329977826e962f601eb
bpo-38858: _PyImport_FixupExtensionObject() handles subinterpreters (GH-17350)

If _PyImport_FixupExtensionObject() is called from a subinterpreter,
leave extensions unchanged and don't copy the module dictionary
into def->m_base.m_copy.
Include/cpython/pystate.h
Include/internal/pycore_pystate.h
Python/import.c
Python/pystate.c