]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-6761: Enhance __call__ documentation (GH-7987)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 27 Oct 2020 16:42:36 +0000 (09:42 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 16:42:36 +0000 (09:42 -0700)
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/reference/datamodel.rst

index c527719c40d06323d49cf09d1bfeee77c730707e..89063876ccc9ed918774d371c4352cc47082a969 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: