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

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->obtype->tpname becomes PyType(o)->typname or > o->obbase->obtype->tpname. > > 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 PyObjectHEAD 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