From: Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 27 Oct 2020 16:42:36 +0000 (-0700) Subject: bpo-6761: Enhance __call__ documentation (GH-7987) X-Git-Tag: v3.9.1rc1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cb259fcf3cde56f359c2f393280689784dcc834;p=thirdparty%2FPython%2Fcpython.git bpo-6761: Enhance __call__ documentation (GH-7987) (cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d) Co-authored-by: Andre Delfino --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index c527719c40d0..89063876ccc9 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -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: