I have a large python code base.
At one point I find out (using guppy
but that doesn't really matter) that I have an existing instance of my class BigClass
.
At this point of the code I do not expect to have any living instances of BigClass
since all of them were supposed to be released. I tried calling gc.collect()
How can I trace down where is this instance, why is it still alive, its properties and so on?