[Python-Dev] trashcan and PR#7
Jeremy Hylton
jeremy@cnri.reston.va.us
Wed, 12 Apr 2000 15:07:41 -0400 (EDT)
Just after I sent the previous message, I realized that the "trashcan"
approach is needed in addition to some application-specific logic for
what to do when recursive traversals of objects occur. This is true
for repr and for a compare that fixes PR#7.
Current recipe for repr coredump:
original = l = []
for i in range(1000000):
new = []
l.append(new)
l = new
l.append(original)
repr(l)
Jeremy