You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.getsizeof for dataclass-based instance return the size of the basic instance structure: PyGC_Head + reference to the type of the instance + refcount + refernce to __dict__ + refrence to __weakref__ = 24+8+8+8+8=56. It don't count the space for attribute's values from __dict__ and the space for __dict__ instance.
The text was updated successfully, but these errors were encountered:
sys.getsizeof for dataclass-based instance return the size of the basic instance structure: PyGC_Head + reference to the type of the instance + refcount + refernce to
__dict__
+ refrence to__weakref__
= 24+8+8+8+8=56. It don't count the space for attribute's values from__dict__
and the space for__dict__
instance.The text was updated successfully, but these errors were encountered: