Hi @ptrblck,
When we measure a size of an object, we really want the size of all of it’s attributes, and their attributes, etc. But sys.getsizeof only gives us the size of the object and their attributes, however it does not recursively add the size of sub-attributes.
So , we can say this as Shallow size.
It has been clearly mentioned in this link :
https://goshippo.com/blog/measure-real-size-any-python-object/ 12
Please let me know , if I interpreted the aforementioned content correctly.