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

Reply via email to