Andrew Breza

38%
Flag icon
It’s possible to “save memory and eat it too”: if you add the '__dict__' name to the __slots__ list, your instances will keep attributes named in __slots__ in the per-instance array of references, but will also support dynamically created attributes, which will be stored in the usual __dict__.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview