summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-27 16:28:00 (GMT)
committerGitHub <noreply@github.com>2020-10-27 16:28:00 (GMT)
commitb1ce0440bfe87e092ca5e2e57875fb7fc1129137 (patch)
tree54f3ab43a3c19ff0fb75467fa38ff551933fc7b9 /Doc
parentd2071097a7bb6ba71d542b30f73ad79dd824c893 (diff)
downloadcpython-b1ce0440bfe87e092ca5e2e57875fb7fc1129137.zip
cpython-b1ce0440bfe87e092ca5e2e57875fb7fc1129137.tar.gz
cpython-b1ce0440bfe87e092ca5e2e57875fb7fc1129137.tar.bz2
bpo-6761: Enhance __call__ documentation (GH-7987)
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d) Co-authored-by: Andre Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index da38bba..083d38c 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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: