[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

STINNER Victor report at bugs.python.org
Tue Dec 29 20:10:10 EST 2020


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

Serhiy Storchaka:
> I don't think that it was right thing to break binary compatibility. It virtually buried the stable ABI.

IMO there is a misunderstanding about the stable ABI. PyType_FromSpec() doesn't need Py_TPFLAGS_HAVE_xxx flags: this function allocates a heap type which *has* all these members (set to 0/NULL by default).

And it's not possible to define a static type using the limited C API, since the PyTypeObject structure is excluded from it on purpose.

See bpo-32388 for a similar discussion.

----------

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


More information about the Python-bugs-list mailing list