<br><br><div class="gmail_quote">On 31 May 2012 11:57, <a href="mailto:psaffrey@googlemail.com">psaffrey@googlemail.com</a> <span dir="ltr"><<a href="mailto:psaffrey@googlemail.com" target="_blank">psaffrey@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for all the responses.<br>
<br>
It looks like none of the BeautifulSoup objects have __del__ methods, so I don't think that can be the problem.<br>
<br>
To answer your other question, guppy was the best match I came up with when looking for a memory profile for Python (or more specifically "Heapy"):<br>
<br>
<a href="http://guppy-pe.sourceforge.net/#Heapy" target="_blank">http://guppy-pe.sourceforge.net/#Heapy</a><br>
<div class="im"><br>
On Thursday, May 31, 2012 2:51:52 AM UTC+1, Steven D'Aprano wrote:<br>
><br>
> The destructor doesn't get called into the last reference is gone.<br>
><br>
<br>
</div>That makes sense, so now I need to track down why there are references to the object when I don't think there should be. Are there any systematic methods for doing this?<br></blockquote><div><br></div><div><a href="http://mg.pov.lt/blog/hunting-python-memleaks.html">http://mg.pov.lt/blog/hunting-python-memleaks.html</a>
</div><div><br></div><div><a href="http://pypi.python.org/pypi/objgraph">http://pypi.python.org/pypi/objgraph</a>
</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Peter<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br>