-----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----- _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com