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

This commit is contained in:
Andre Delfino 2020-10-27 13:18:57 -03:00 committed by GitHub
parent 37834136d0
commit 95f710c557
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: