what is __slots__ in python: Qt for Python Signals and Slots - Qt Wiki. 11 Python Magic Methods Every Programmer Should Know. dataclasses — Data Classes.
This is recommended when both
signal and slot is implemented in python. By using PyQt_PyObject we avoid unnecessary conversions between python objects and C++ types and it is more consistent with python dynamically typed nature.
Save memory using Python
slots.
Python __slots__ are useful for saving memory when you have a large number of small objects whose attributes are known ahead o...
slots: If true (the default is False), __slots__ attribute will be generated and new class will be returned instead of the original one.