<br><br><div class="gmail_quote">On 27 April 2010 23:08, Chris Rebert <span dir="ltr"><<a href="mailto:clp2@rebertia.com">clp2@rebertia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Apr 27, 2010 at 1:45 PM, Michal M <<a href="mailto:mich.mierzwa@googlemail.com">mich.mierzwa@googlemail.com</a>> wrote:<br>
> I've just found out that one of objects is not destroyed when it<br>
> should be. This means that something was holding reference to this<br>
> object or part of it (i.e. method). Is there any way to check what<br>
> holds that reference? I am unable to do that just looking to the code<br>
> or debugging it because it is pretty complicated, but I am able to<br>
> invoke this situation again.<br>
<br>
</div>gc.get_referrers(your_object) ?<br>
<br>
Docs: <a href="http://docs.python.org/library/gc.html#gc.get_referrers" target="_blank">http://docs.python.org/library/gc.html#gc.get_referrers</a><br>
<br>
Cheers,<br>
Chris<br></blockquote></div><br>Ah, it does exist! I wish I knew that two months ago, it would've saved me some precious time ;)<br><br>Almar<br>