[issue39573] [C API] Make PyObject an opaque structure in the limited C API

STINNER Victor report at bugs.python.org
Thu Jun 10 09:27:28 EDT 2021


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

See also bpo-44378: "Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type".

If Py_TYPE() is converted again to a static inline function which takes a "const PyObject*" type, Py_IS_TYPE() can be modified again at the same time to use Py_TYPE().

----------

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


More information about the Python-bugs-list mailing list