Vladimir

38%
Flag icon
If you declare __slots__ = () (an empty tuple), then the instances of the subclass will have no __dict__ and will only accept the attributes named in the __slots__ of the base class.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview