Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-95276: Add callable entry to the glossary
  • Loading branch information
MonadChains committed Aug 6, 2022
commit 04e411e65f327cbadd6999ec261e730f62af6f12
6 changes: 6 additions & 0 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ 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 has the pointer :c:member:`~PyTypeObject.tp_call`
not ``NULL`` and set to a function. Python functions and object methods
are callables. 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