aigeano / pympler

Automatically exported from code.google.com/p/pympler
Apache License 2.0
0 stars 0 forks source link

Keep track of Python bugfix on tp_traverse implementation for iterators #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Extract from http://bugs.python.org/issue3680

"The dict, set, and deque iterators do not implement tp_traverse although
they reference container objects. This can lead to reference cycles
which will not be collected."

Once this is fixed, pympler can use gc.get_referents to get all objects
referents. Currently this is not possible for the above mentioned iterators.

Original issue reported on code.google.com by robert.s...@gmail.com on 27 Aug 2008 at 6:43

GoogleCodeExporter commented 9 years ago
The change has been applied to the trunks (2.7 and 3.1), and will be backported 
to
2.6 and 3.0. 

Original comment by robert.s...@gmail.com on 12 Jan 2009 at 5:36