Usage of __slots__?
What is the purpose of __slots__ in Python — especially with respect to when I would want to use it, and when not? 12 s 12 In Python, what is the purpose of __slots__ and what are the cases one should avoid this? TLDR: The special attribute __slots__ allows you to explicitly state which instance … Read more