The Faulty Coder

The fault lies in our code, not our stars

Taming memory of Python objects - slots and weak references
by Anand, post on Tue 07 October 2025

In the last article, I took an example of a simple Python class and using it to demo how dynamic the actual memory footprint of a Python object is and how deceptively large it can be.

The hidden cost of __dict__

Let me continue with our Person class to refresh …