[Python-Dev] Cycle collection enhancement idea

Antoine Pitrou solipsis at pitrou.net
Sun Jun 29 16:53:45 CEST 2008

Antoine Pitrou <solipsis <at> pitrou.net> writes:
> I was thinking a flag in the PyObject header would do the trick but there
> aren't any flags in the PyObject header... *gasp*.

Actually, we only care about GC-tracked objects (the others are deallocated
simply when their refcount falls to zero), so this could be another special
value in the gc_refs field, together with a specific macro.

More information about the Python-Dev mailing list