Popular recipes by Michael Droettboom http://code.activestate.com/recipes/users/2323856/2007-06-29T08:54:52-07:00ActiveState Code RecipesFind cyclical references (Python)
2007-06-29T08:54:52-07:00Michael Droettboomhttp://code.activestate.com/recipes/users/2323856/http://code.activestate.com/recipes/523004-find-cyclical-references/
<p style="color: grey">
Python
recipe 523004
by <a href="/recipes/users/2323856/">Michael Droettboom</a>
(<a href="/recipes/tags/debugging/">debugging</a>).
</p>
<p>This recipe helps find cyclical references in Python code to a] optimize so the garbage collector doesn't have to work as hard, and b] deal with uncollectable objects, such as those with a __del__ method, or extension objects that don't participate in garbage collection.</p>
Find cyclical references (Python)
2007-06-29T08:51:26-07:00Michael Droettboomhttp://code.activestate.com/recipes/users/2323856/http://code.activestate.com/recipes/523003-find-cyclical-references/
<p style="color: grey">
Python
recipe 523003
by <a href="/recipes/users/2323856/">Michael Droettboom</a>
(<a href="/recipes/tags/debugging/">debugging</a>).
</p>
<p>This recipe helps find cyclical references in Python code to a] optimize so the garbage collector doesn't have to work as hard, and b] deal with uncollectable objects, such as those with a __del__ method, or extension objects that don't participate in garbage collection.</p>
Grouping objects into disjoint sets (Python)
2005-05-09T19:59:13-07:00Michael Droettboomhttp://code.activestate.com/recipes/users/2323856/http://code.activestate.com/recipes/387776-grouping-objects-into-disjoint-sets/
<p style="color: grey">
Python
recipe 387776
by <a href="/recipes/users/2323856/">Michael Droettboom</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
Revision 2.
</p>
<p>This recipe provides a lightweight way to group arbitrary objects together into disjoint sets when a full-blown graph data structure would be overkill.</p>