Skip to content

Commit 2cb259f

Browse files
bpo-6761: Enhance __call__ documentation (GH-7987)
(cherry picked from commit 95f710c) Co-authored-by: Andre Delfino <[email protected]>
1 parent 562ad76 commit 2cb259f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ Emulating callable objects
21682168
.. index:: pair: call; instance
21692169

21702170
Called when the instance is "called" as a function; if this method is defined,
2171-
``x(arg1, arg2, ...)`` is a shorthand for ``x.__call__(arg1, arg2, ...)``.
2171+
``x(arg1, arg2, ...)`` roughly translates to ``type(x).__call__(x, arg1, ...)``.
21722172

21732173

21742174
.. _sequence-types:

0 commit comments

Comments
 (0)