Skip to content

Commit 37d1659

Browse files
miss-islingtonMonadChains
authored andcommitted
gh-95276: Add callable entry to the glossary (GH-95738)
(cherry picked from commit e3bf125) Co-authored-by: MonadChains <monadchains@gmail.com>
1 parent 61e24f3 commit 37d1659

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/glossary.rst

+10
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ Glossary
203203
A list of bytecode instructions can be found in the documentation for
204204
:ref:`the dis module <bytecodes>`.
205205

206+
callable
207+
A callable is an object that can be called, possibly with a set
208+
of arguments (see :term:`argument`), with the following syntax::
209+
210+
callable(argument1, argument2, ...)
211+
212+
A :term:`function`, and by extension a :term:`method`, is a callable.
213+
An instance of a class that implements the :meth:`~object.__call__`
214+
method is also a callable.
215+
206216
callback
207217
A subroutine function which is passed as an argument to be executed at
208218
some point in the future.

0 commit comments

Comments
 (0)