Visualizing Garbage Collection in Ruby and Python(blog.codeship.com)
blog.codeship.com
Visualizing Garbage Collection in Ruby and Python
http://blog.codeship.com/visualizing-garbage-collection-ruby-python/?utm_content=buffer24fa8&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
> Whenever an object’s reference count reaches zero, Python immediately frees it, returning its memory to the operating system
CPython has its own allocator that steals memory into locally owned pools, so freeing memory won't normally actually free the memory. Plus, there's no guarantee the OS would get it back anyway.