mirror of https://github.com/python/cpython
bpo-6761: Enhance __call__ documentation (GH-7987)
This commit is contained in:
parent
37834136d0
commit
95f710c557
|
@ -2168,7 +2168,7 @@ Emulating callable objects
|
|||
.. index:: pair: call; instance
|
||||
|
||||
Called when the instance is "called" as a function; if this method is defined,
|
||||
``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, arg2, ...)``.
|
||||
``x(arg1, arg2, ...)`` roughly translates to ``type(x).__call__(x, arg1, ...)``.
|
||||
|
||||
|
||||
.. _sequence-types:
|
||||
|
|
Loading…
Reference in New Issue