[issue26824] Make some macros use Py_TYPE

Xiang Zhang report at bugs.python.org
Fri Apr 22 02:10:19 EDT 2016


Xiang Zhang added the comment:

No, actually I don't mean to change all the (obj)->ob_type in Python repo. I know there are more (obj)->ob_type in it, but they are compliant with PEP3123 since obj is of type PyObject*. You don't have the need to change them. What I propose is only to change the macros that not use Py_TYPE since the macros may be used later with arguments not of type PyObject*.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26824>
_______________________________________


More information about the Python-bugs-list mailing list