STINNER Victor <vstin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42747> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com