Say I have a class A:
class A(object): def __init__(self, x): self.x = x def __str__(self): return self.x
And I us
in the case of a new class instance getsizeof() return the size of a reference to PyObject which is returned by the C function PyInstance_New()
if you want a list of all the object size check this.