[Python-Dev] A little GC confusion
Fred L. Drake, Jr.
fdrake@acm.org
Fri, 22 Feb 2002 10:26:21 -0500
"Jason Orendorff" <jason@jorendorff.com> writes:
> How can it have GC when many instances are static objects, not
> allocated with PyObject_GC_VarNew()?
Martin v. Loewis writes:
> Because the type type implements tp_is_gc (typeobject.c:1378),
> declaring static type objects as not being gc. In turn, garbage
> collection will not attempt to look at the GC header of these type
> objects.
I'm starting to really fear writing the documentation for all this!
There are going to be a lot of mostly-inscrutible details to get
right, and people are already asking the questions, so it really will
need to be written down.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation