Skip to content Skip to sidebar Skip to footer
Showing posts with the label Garbage Collection

How Is Memory Garbage Collected In App Engine (python) When Iterating Over Db Results

I have some code that iterates over DB entities, and runs in a task - see below. On app engine I… Read more How Is Memory Garbage Collected In App Engine (python) When Iterating Over Db Results

Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?

Imagine a hypothetical situation where a function returns two values: a huge dataset you are not in… Read more Does Python Garbage Collector Behave Any Different With A _ Single Underscore Variable Name And Is It Really A "throwaway" Variable?

Overriding Destructors Without Calling Their Parents

I'm writing a class that inherits from some library. In said class I'm overriding the destr… Read more Overriding Destructors Without Calling Their Parents

Python: Weakref.finalize Not Run If Background Threads Are Alive

I wanted to use weakref.finalize to cleanup some background threads when an object goes out of sigh… Read more Python: Weakref.finalize Not Run If Background Threads Are Alive