[docs] [issue29165] Use forward compatible macro in example code for creating new type

Serhiy Storchaka report at bugs.python.org
Tue Feb 21 04:50:10 EST 2017


Serhiy Storchaka added the comment:

PyVarObject_HEAD_INIT() is more used in Python 3 code, but the code with PyObject_HEAD_INIT() doesn't look incompatible with Python 3. I don't see a need of this change.

PyObject_HEAD_INIT() also is used in .c files in Doc/includes/.

----------
nosy: +serhiy.storchaka

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


More information about the docs mailing list