← All questions
HardPython

What is the purpose of the `__slots__` attribute in a Python class?

What is the purpose of the `__slots__` attribute in a Python class?