(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`,
:func:`pow`, ``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``). For instance, to
evaluate the expression ``x + y``, where *x* is an instance of a class that
- has an :meth:`__add__` method, ``x.__add__(y)`` is called. The
+ has an :meth:`__add__` method, ``type(x).__add__(x, y)`` is called. The
:meth:`__divmod__` method should be the equivalent to using
:meth:`__floordiv__` and :meth:`__mod__`; it should not be related to
:meth:`__truediv__`. Note that :meth:`__pow__` should be defined to accept
(swapped) operands. These functions are only called if the left operand does
not support the corresponding operation [#]_ and the operands are of different
types. [#]_ For instance, to evaluate the expression ``x - y``, where *y* is
- an instance of a class that has an :meth:`__rsub__` method, ``y.__rsub__(x)``
- is called if ``x.__sub__(y)`` returns *NotImplemented*.
+ an instance of a class that has an :meth:`__rsub__` method,
+ ``type(y).__rsub__(y, x)`` is called if ``type(x).__sub__(x, y)`` returns
+ *NotImplemented*.
.. index:: builtin: pow