Author jek
Recipients jek
Date 2010-09-10.19:04:02
SpamBayes Score 5.76987e-08
Marked as misclassified No
Message-id <1284145444.07.0.163314050875.issue9825@psf.upfronthosting.co.za>
In-reply-to
Content
Circular graphs of collections.OrderedDict are uncollectable due to the presence of OrderedDict.__del__.

>>> from collections import OrderedDict
>>> import gc
>>> left, right = OrderedDict(), OrderedDict()
>>> left['other'] = right
>>> right['other'] = left
>>> assert not gc.garbage
>>> del left, right
>>> gc.collect()
10
>>> assert not gc.garbage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

Not an issue in 3.1.1, have not verified with 3.1.2.
History
Date User Action Args
2010-09-10 19:04:04jeksetrecipients: + jek
2010-09-10 19:04:04jeksetmessageid: <1284145444.07.0.163314050875.issue9825@psf.upfronthosting.co.za>
2010-09-10 19:04:02jeklinkissue9825 messages
2010-09-10 19:04:02jekcreate