How to check what is holding reference to object
Marius Gedminas
mgedmin at gmail.com
Wed May 5 15:47:35 EDT 2010
On Apr 27, 11:45 pm, Michal M <mich.mier... at googlemail.com> wrote:
> I've just found out that one of objects is not destroyed when it
> should be. This means that something was holding reference to this
> object or part of it (i.e. method). Is there any way to check what
> holds that reference? I am unable to do that just looking to the code
> or debugging it because it is pretty complicated, but I am able to
> invoke this situation again.
I wrote http://pypi.python.org/pypi/objgraph for this purpose.
--
Marius Gedminas
More information about the Python-list
mailing list