"KJ" == Kevin Jacobs firstname.lastname@example.org writes:
KJ> On Fri, 28 Jun 2002, Neil Schemenauer wrote:
Another idea would be exploit the fact that we know most of the root objects (e.g. sys.modules and the current stack of frames). I haven't figured out a good use for this knowledge though.
KJ> If the root objects cannot be reached by the GC traversal, you KJ> get the approach that Jeremy is suggesting. (Though I just KJ> looked, and frame objects aren't exempt from tracking)
Right. My suggestion is to not track a set of objects that otherwise would be tracked -- the current frame and its local variables.