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

(cherry picked from commit 95f710c557)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
This commit is contained in:
Miss Skeleton (bot) 2020-10-27 09:42:36 -07:00 committed by GitHub
parent 562ad7624e
commit 2cb259fcf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2168,7 +2168,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: