[Python-Dev] A little GC confusion (original) (raw)
Jason Orendorff jason@jorendorff.com
Fri, 22 Feb 2002 03:31:55 -0600
- Previous message: [Python-Dev] A little GC confusion
- Next message: [Python-Dev] A little GC confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Heller wrote:
David Abrahams wrote: > What I don't understand is how the builtin metatype > gets away with PyTPFLAGSHAVEGC when some of its instance > types are not even heap-allocated.
Hm, I don't understand you, Are you talking about PyTPFLAGSHEAPTYPE?
I think David is asking about line 1404 of Objects/typeobject.c, where it says that PyType_Type is Py_TPFLAGS_HAVE_GC. How can it have GC when many instances are static objects, not allocated with PyObject_GC_VarNew()?
I don't know the answer.
Jason Orendorff http://www.jorendorff.com/
- Previous message: [Python-Dev] A little GC confusion
- Next message: [Python-Dev] A little GC confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]