[Python-3000] PEP 3123: Making PyObject_HEAD conform to standard C (Was: Dropping PyObject_HEAD)

Brett Cannon brett at python.org
Sun Apr 29 19:06:37 CEST 2007


On 4/29/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> > An example of how this will change current code would be good.  E.g.,
> > ``o->ob_type->tp_name`` becomes ``PyType(o)->typ_name`` or
> > ``o->ob_base->ob_type->tp_name``.
> >
> > Otherwise I am all for cleaning up the codebase and thus support this PEP.
>
> Thanks for the suggestions, I have add them all into PEP 3123.
>
> I also changed the PEP title, to reflect that PyObject_HEAD is
> maintained for compatibility.
>

Are we going to have a preference over PyObject_HEAD or defining the
struct field directly?

-Brett


More information about the Python-3000 mailing list