Snippets tagged “slots”
1 snippet uses this tag.
- Usage of __slots__?Python
__slots__ is a way to specify a fixed set of attributes for a class, which can help to save memory in certain situations.
1 snippet uses this tag.
__slots__ is a way to specify a fixed set of attributes for a class, which can help to save memory in certain situations.