[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

Jeroen Demeyer report at bugs.python.org
Tue Jun 18 05:07:26 EDT 2019


Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:

> If we reintroduce it, why not put it back at its previous place, to provide ABI compatibility?

First of all, we longer care about ABI compatibility of PyTypeObject.

Second, it is extremely unlikely that the class will use vectorcall: the only way would be to inherit from a base class that uses vectorcall, but there aren't any subclassable classes using vectorcall in CPython. If the class doesn't use vectorcall, then it really doesn't matter: tp_vectorcall_offset is unused in that case, just like tp_print.

----------

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


More information about the Python-bugs-list mailing list