Vladimir

37%
Flag icon
if you define a class attribute named __slots__ holding a sequence of attribute names, Python uses an alternative storage model for the instance attributes: the attributes named in __slots__ are stored in a hidden array or references that use less memory than a dict.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview