Skip to content
6 changes: 6 additions & 0 deletions Doc/library/functools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,12 @@ The :mod:`functools` module defines the following functions:
The same pattern can be used for other similar decorators:
:deco:`staticmethod`, :deco:`~abc.abstractmethod`, and others.

``singledispatchmethod`` always dispatches on the first argument passed at call
time, irrespective of whether the method is bound or unbound. As a result,
calling the method through an instance or through the class may result in
different dispatch behavior. This behavior is required to support correct
dispatch when used with ``staticmethod`` and ``classmethod``.

Comment thread
priyanshu2282-cyber marked this conversation as resolved.
Outdated
.. versionadded:: 3.8

.. versionchanged:: 3.15
Expand Down
Loading