[issue26824] Make some macros use Py_TYPE

Serhiy Storchaka report at bugs.python.org
Fri Apr 22 05:06:52 EDT 2016


Serhiy Storchaka added the comment:

How this can help reduce the possible errors? I afraid that it rather can increase the possibility of error.

There is no undefined behaviour in current code. It was in old code (in the casting a pointer to PyObject*), but this was fixed with new PyObject_HEAD in 3.0+. 2.7 still has this undefined behaviour.

----------

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


More information about the Python-bugs-list mailing list