[Python-3000] PyObject_HEAD_INIT
Roger Binns
rogerb at rogerbinns.com
Fri Nov 14 22:15:59 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My confusion was because I though that the HEAD for the data structure
had to use the same corresponding HEAD_INIT in the type. So for
whatever reason the PyTypeObject is declared as a var object which is
why the var HEAD_INIT is needed.
It still looks like PyObject_HEAD_INIT should be removed so that people
using earlier versions of Python, following the Py3 docs (before they
are fixed), using older tutorials etc don't get burnt.
Grepping through the py3 source shows only PyModuleDef_HEAD_INIT using
PyObject_HEAD_INIT. There are no other legitimate uses!
Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkkd6osACgkQmOOfHg372QSXDgCbBg/zzqmAU4GaJL2qo4aNHocq
c+oAn3IqgPGCvQN8jVMjttA8h+5+MO4g
=f7os
-----END PGP SIGNATURE-----
More information about the Python-3000
mailing list