[Python-Dev] C API for gc.enable() and gc.disable()

"Martin v. Löwis" martin at v.loewis.de
Thu Jun 26 06:01:14 CEST 2008


> I would it be possible, if not a good idea, to only track object
> deallocations as the GC traversal trigger? As far as I know, dangling
> cyclic references cannot be formed when allocating objects.

Not sure what you mean by that.

x = []
x.append(x)
del x

creates a cycle with no deallocation occurring.

Regards,
Martin


More information about the Python-Dev mailing list