[Python-3000] PyObject_HEAD_INIT
"Martin v. Löwis"
martin at v.loewis.de
Fri Nov 14 21:22:46 CET 2008
Roger Binns wrote:
> Martin v. Löwis wrote:
>>> Also why not remove PyObject_HEAD_INIT from Python 3 headers so that if
>>> it is used then the compile fails?
>> It's still needed for non-var objects.
>
> Wouldn't a var object have PyVarObject_HEAD and a non-var object have
> PyObject_HEAD?
That's in the types. In the objects, you need the *_INIT macros.
Regards,
Martni
More information about the Python-3000
mailing list