[Python-checkins] bpo-6761: Enhance __call__ documentation (GH-7987)

miss-islington webhook-mailer at python.org
Tue Oct 27 12:28:10 EDT 2020


https://github.com/python/cpython/commit/b1ce0440bfe87e092ca5e2e57875fb7fc1129137
commit: b1ce0440bfe87e092ca5e2e57875fb7fc1129137
branch: 3.8
author: Miss Skeleton (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-10-27T09:28:00-07:00
summary:

bpo-6761: Enhance __call__ documentation (GH-7987)

(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino <adelfino at gmail.com>

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index da38bba91b6b9..083d38cc9f160 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:



More information about the Python-checkins mailing list