Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-6761: Enhance __call__ documentation (GH-7987)
(cherry picked from commit 95f710c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
  • Loading branch information
andresdelfino authored and miss-islington committed Oct 27, 2020
commit ecd43593c70e9b16d72f79056afe60b258b59094
2 changes: 1 addition & 1 deletion Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down