I don't quite understand what the problem with lists would be, except for 
weakref.WeakValueDictionary the size of containers should never be changed 
by a garbage collection. 

If you think that garbage collection at inopportune times causes the 
problem, how about running a garbage collection after each python 
instruction to make the issue reproducible? You can just hook into the 
python debugger hook:

def my_hook(frame, event, arg):
    gc.collect()
    return my_hook

sys.settrace(my_hook)

This will make things excruciatingly slow (forget about the whole 
testsuite), but should be fast enough to debug the TripleDict

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to