what is __slots__ in python
dataclasses — Data Classes
slots: If true (the default is False), __slots__ attribute will be generated and new class will be returned instead of the original one.
Using slots in Python: limit dynamic attribute creation and improve ...
In this video, we learn about slots in Python and how we can use them to optimize our code . Programming Books & Merch 📚🐍 The Python Bibl...
dataclasses — Data Classes — Python 3.11.13 documentation
Data classes was an interesting read and will definitely save some time in the future, but I think the __slots__ mention is where I got the most value from (big memory and access speed savings!