Skip to content

Commit

Permalink
pythongh-95276: Add callable entry to the glossary (pythonGH-95738)
Browse files Browse the repository at this point in the history
(cherry picked from commit e3bf125)

Co-authored-by: MonadChains <[email protected]>
  • Loading branch information
MonadChains authored and miss-islington committed Oct 12, 2022
1 parent af63fa0 commit 82881e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ Glossary
A list of bytecode instructions can be found in the documentation for
:ref:`the dis module <bytecodes>`.

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.
Expand Down

0 comments on commit 82881e7

Please sign in to comment.