Showmedo is proud to publish:[1431] Garbage Collection in Python – Part I -, a video-tutorial by gasto
This video is part of the series Python from zero.
We view an animated illustration of how the garbage collector collects objects under Python 3.0 . That is, two referrers are created by being associated to the Foo class instance, and the Foo class instance itself its created when at least one referrer is left, destroyed when no referrers to it are left.
the weakref being associated to the Foo instance, at the end of the animation, is not accounted for the reference count (as seen in the refcount counter at the top-right side of the animation).
I type in the class Foo that we will be using in further videos, to explain garbage collection.
Note : the class created here is not intended for any practical purpose. It is just of use for the exercise on learning the concepts behind garbage collection in Python.
Related posts:

