]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-6761: Enhance __call__ documentation (GH-7987)
authorAndre Delfino <adelfino@gmail.com>
Tue, 27 Oct 2020 16:18:57 +0000 (13:18 -0300)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 16:18:57 +0000 (17:18 +0100)
Doc/reference/datamodel.rst

index d92e19761a9654311f68523d58a746a3823f993b..c882301ad3a4afa647348b6b98479a7fdb126711 100644 (file)
@@ -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: