[issue40533] [subinterpreters] Don't share Python objects between interpreters

STINNER Victor report at bugs.python.org
Sat Oct 31 19:05:40 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> For example, PyModule_Type is declared statically and so shared by all interpreters and so PyModule_Type.tp_mro tuple is accessed in parallel by multiple interpreters.

Another example of this issue are parallel Py_INCREF/Py_DECREF calls on the tp_bases member of a type.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40533>
_______________________________________


More information about the Python-bugs-list mailing list