Trouble with imshow

Thu, 03 Feb 2011 16:37:31 -0800, Christoph Gohlke wrote:
[clip]

My understanding is that if there is a circular reference then the
refcount will not be zero anyway. In this case _AxesImageBase instances
and their image caches will never be deleted by the gc (__del__ method
present or not) unless the circle is broken.

Python's GC will try to break the cycles if possible. In fact, there's no
other need for a GC in a reference counted system.

···

--
Pauli Virtanen