On 27 April 2010 23:08, Chris Rebert <c...@rebertia.com> wrote: > On Tue, Apr 27, 2010 at 1:45 PM, Michal M <mich.mier...@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. > > gc.get_referrers(your_object) ? > > Docs: http://docs.python.org/library/gc.html#gc.get_referrers > > Cheers, > Chris >
Ah, it does exist! I wish I knew that two months ago, it would've saved me some precious time ;) Almar
-- http://mail.python.org/mailman/listinfo/python-list