@binkle @hazlin Such is life in the carnival of horrors that is python. Im not going to get into the details but roughly speaking theres reference counting being done to inform the automatic garbage collection, but when that isn't suitable (think reference cycles, the collector not being called soon enough when left to its own devices, etc.), you could, for example, do some simple manual garbage collection by calling the python's garbage collector manually (hence manual garbage collection)
import gc gc.collect() # or disable it entirely with gc.disable()PS I hate python