summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-27 16:42:36 (GMT)
committerGitHub <noreply@github.com>2020-10-27 16:42:36 (GMT)
commit2cb259fcf3cde56f359c2f393280689784dcc834 (patch)
tree4a31e0abe87bee633d90ad7ddcf9ae4d1fce6b8a /Doc/reference
parent562ad7624e5fe22fdded9b39723c562255a49abd (diff)
downloadcpython-2cb259fcf3cde56f359c2f393280689784dcc834.zip
cpython-2cb259fcf3cde56f359c2f393280689784dcc834.tar.gz
cpython-2cb259fcf3cde56f359c2f393280689784dcc834.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/reference')
-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 c527719..8906387 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: