[Python-Dev] Linus on garbage collection

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 7 10:20:23 CEST 2011

Stefan Behnel wrote:

> It's a dead-end that is referenced by a cycle, that's all.

But shouldn't it be breaking the cycle by clearing one
of the objects that's actually part of the cycle, rather
than part of the dead-end?

I can't see how the Document could get picked for clearing
unless it was actually in the cycle. Either that or I'm
imagining the cyclic GC algorithm to be smarter than it
actually is.


More information about the Python-Dev mailing list