[Python-Dev] A little GC confusion

Thomas Heller thomas.heller@ion-tof.com
Thu, 21 Feb 2002 15:52:11 +0100


From: "David Abrahams" <david.abrahams@rcn.com>
> From: "Thomas Heller" <thomas.heller@ion-tof.com>
> 
> > PS: I have code very similar to yours, and a question:
> >
> > Why does your class_type_object have PyPyBase_ObjectType as
> > tp_base? To implement a subtypable type this is not needed
> > IMO, or do I miss something?
> 
> I wanted subclasses of my class_type_object to have the same properties as
> new-style classes, so it just made sense to me to do that.
> 
> Python's documentation is... less than complete... so I'm sure I'm missing
> something.

Sure. Unfortunately, PEP253 still talks of PyType_InitDict instead
of PyType_Ready, but we're beyond that already;-)

Thomas