From ecd43593c70e9b16d72f79056afe60b258b59094 Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Tue, 27 Oct 2020 13:18:57 -0300 Subject: [PATCH] bpo-6761: Enhance __call__ documentation (GH-7987) (cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d) Co-authored-by: Andre Delfino --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index da38bba91b6b93..083d38cc9f1604 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: