mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
gh-95276: Add callable entry to the glossary (GH-95738)
(cherry picked from commit e3bf125c81
)
Co-authored-by: MonadChains <monadchains@gmail.com>
This commit is contained in:
parent
d22c35dfff
commit
9e666bc640
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue