diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-22 17:52:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 17:52:27 (GMT) |
commit | 82c83bd907409c287a5bd0d0f4598f2c0538f34d (patch) | |
tree | 0f7b4dcc1221e93cf9ad8fd704c5cf90e4dac11a /Include/cpython | |
parent | 42bc60ead39c7be9f6bb7329977826e962f601eb (diff) | |
download | cpython-82c83bd907409c287a5bd0d0f4598f2c0538f34d.zip cpython-82c83bd907409c287a5bd0d0f4598f2c0538f34d.tar.gz cpython-82c83bd907409c287a5bd0d0f4598f2c0538f34d.tar.bz2 |
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.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/pystate.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 6c8d2ae..d179257 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -147,7 +147,6 @@ struct _ts { The caller must hold the GIL.*/ PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_Get(void); -PyAPI_FUNC(int) _PyState_AddModule(PyObject*, struct PyModuleDef*); PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *); /* Similar to PyThreadState_Get(), but don't issue a fatal error |