Кастове
- __bool__(self)
- __float__(self)
- __int__(self)
- __str__(self)
Репрезентация
- __repr__(self)
- __str__(self)
- __doc__
- __dir__(self)
Аритметика
- __add__ / __radd__(self, a)
- __sub__ / __rsub__(self, a)
- __mul__ / __rmul__(self, a)
- __div__ / __rdiv__(self, a)
- __floordiv__ / __rfloordiv__(self, a)
- __truediv__ / __rtruediv__(self, a)
- __divmod__ / __rdivmod__(self, a)
Аритметика (2)
- __abs__(self)
- __pos__(self)
- __neg__(self)
Битова аритметика
- __and__(self, a)
- __or__(self, a)
- __xor__(self, a)
- __rshift__(self, n)
- __lshift__(self, n)
Равенство и хеширане
- __eq__(self, a)
- __ne__(self, a)
- __hash__(self)
Сравнения
- __lt__(self, a)
- __le__(self, a)
- __gt__(self, a)
- __le__(self, a)
Дескриптори
- __get__(self, instance, owner)
- __set__(self, instance, value)
- __delete__(self, instance)
Атрибути
- __getattribute__(self, name)
- __getattr__(self, name)
- __setattr__(self, name, value)
- __delattr__(self, name)
- __dir__(self)
Итератори
- __iter__(self)
- __next__(self)
Колекции
- __len__(self)
- __contains__(self, item)
- __getitem__(self, i)
- __setitem__(self, i, value)
- __delitem__(self, i)
Метаатрибути
- __dict__
- __slots__
- __class__
- __globals__
- __name__
Функции
- __code__
- __call__(self, *args, **kwargs)