[issue40077] Convert static types to PyType_FromSpec()

STINNER Victor report at bugs.python.org
Thu Mar 26 12:08:39 EDT 2020


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

> We need to convert them.

Let me elaborate. Static types have multiple issues:

* Their lifetime is not well defined.
* It is not obvious when they are ready to be used.
* They are not destroyed at exit.
* They are incompatible with subinterpreters: each interpreter should have its own copy of a type, rather than static types are shared by all interpreters which cause problems with reference counting (require GIL or atomic operation).
* They are causing issues with stable ABI (limited C API): PEP 384.

----------

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


More information about the Python-bugs-list mailing list