Re: [Python-Dev] no tp_traverse for dict iters

2008-08-25 Thread Robert Schuppenies
Sry, wrong link. I meant http://bugs.python.org/issue3680. Robert Schuppenies wrote: > Created bug report at http://bugs.python.org/issue3546. > > Amaury Forgeot d'Arc wrote: >> Yes, this can lead to some object cycle that are not collected. >> See the attached script: a cycle involving a list it

Re: [Python-Dev] no tp_traverse for dict iters

2008-08-25 Thread Robert Schuppenies
Created bug report at http://bugs.python.org/issue3546. Amaury Forgeot d'Arc wrote: > Yes, this can lead to some object cycle that are not collected. > See the attached script: a cycle involving a list iterator is > collected by the garbage collector, but a cycle with a dict iterator > is not. > T

Re: [Python-Dev] no tp_traverse for dict iters

2008-08-25 Thread Amaury Forgeot d'Arc
Hello, 2008/8/25 Robert Schuppenies <[EMAIL PROTECTED]>: > Hi. > > Could you please explain to me why some iterators have a tp_traverse > implementation and others do not? For example tupleiterator has one, > but none of the dict iterators. Same for set iterators (and possibly > others). It shows

[Python-Dev] no tp_traverse for dict iters

2008-08-25 Thread Robert Schuppenies
Hi. Could you please explain to me why some iterators have a tp_traverse implementation and others do not? For example tupleiterator has one, but none of the dict iterators. Same for set iterators (and possibly others). It shows in Python when you use the get_referents function. >>> t = (1,2,3) >