Message 395536 - Python tracker (original) (raw)
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().