STINNER Victor <[email protected]> added the comment:
Comment from my PR:
// bpo-44378: Don't use Py_TYPE() since Py_TYPE() requires a non-const
// object.
By the way, I wrote a change in Python 3.11 to convert Py_TYPE() macro into a
static inline function which accepts a *const* PyObject pointer ("const
PyObject*"):
https://github.com/python/cpython/commit/f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970
But this change had to be reverted since it caused a buildbot regression
(bpo-44348).
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44378>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com