From: MonadChains Date: Wed, 12 Oct 2022 02:41:08 +0000 (+0200) Subject: gh-95276: Add callable entry to the glossary (#95738) X-Git-Tag: v3.12.0a1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3bf125c81d5da0734429c1cb6ae75e6086e35ae;p=thirdparty%2FPython%2Fcpython.git gh-95276: Add callable entry to the glossary (#95738) --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 9385b8ddd13d..59f9426f6031 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -210,6 +210,16 @@ Glossary A list of bytecode instructions can be found in the documentation for :ref:`the dis module `. + callable + A callable is an object that can be called, possibly with a set + of arguments (see :term:`argument`), with the following syntax:: + + callable(argument1, argument2, ...) + + A :term:`function`, and by extension a :term:`method`, is a callable. + An instance of a class that implements the :meth:`~object.__call__` + method is also a callable. + callback A subroutine function which is passed as an argument to be executed at some point in the future.