Python's garbage collection semantics is very much historically grown and implementation-driven. Samuele Pedroni therefore likes to call it the "'there is no such thing as too much chocolate'-approach to GC semantics" :-). In this two-part post series I am going to talk about the semantics of finalization (__del__ methods) in CPython and PyPy. The current behaviour is mostly all a consequence of the fact that CPython uses reference counting for garbage collection. The first consequence is that i More

1 Flattr microdonation