Is this a bug? Python intermittently stops dead for seconds
charlie strauss
cems at earthlink.net
Sun Oct 1 11:37:24 EDT 2006
Steve, digging into the gc docs a bit more, I think the behaviour I am seeing is still not expected. Namely, the program I offered has no obvious place where objects are deallocated. The way GC is supposed to work is thate there are three levels of objects
level0: newly created objects
level1: objects that survived 1 round of garbage collection
level2: objects that survivied 2+ rounds of gargbage collection
Since all of my numerous objects are level2 objects, and none of them are every deallocated, then I should never trip the GC for these.
Your explanation would require this to be tripped so I can't explain it. For your explanation to be correct then there as to be some non-obvious step in the program that is deallocating level2 items in sufficient numbers to trip the GC.
More information about the Python-list
mailing list