slots use less memory (and attribute access is faster) while slightly limiting the flexibility of the class attributes. This focuses on objects which are instantiated "often" and for short periods of time.
1 line
36 B
Text
1 line
36 B
Text
Use slotted classes where possible.
|