Skip to content

Commit b1ce044

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

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
@@ -2163,7 +2163,7 @@ Emulating callable objects
21632163
.. index:: pair: call; instance
21642164

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

21682168

21692169
.. _sequence-types:

0 commit comments

Comments
 (0)