Mar 14, 2023
But more important than that, __slots__ makes the object significantly smaller in terms of memory, because there isn't a __dict__ entry for each class instance.
But more important than that, __slots__ makes the object significantly smaller in terms of memory, because there isn't a __dict__ entry for each class instance.