]> 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:28:00 +0000 (09:28 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 16:28:00 +0000 (09:28 -0700)
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

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

index da38bba91b6b93b64630cf9b9f12cafb40aaa2f7..083d38cc9f1604d389c05d2dfdd1a2c836194823 100644 (file)
@@ -2163,7 +2163,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: