Skip to content

Commit e3bf125

Browse files
authored
gh-95276: Add callable entry to the glossary (#95738)
1 parent ed6344e commit e3bf125

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
@@ -210,6 +210,16 @@ Glossary
210210
A list of bytecode instructions can be found in the documentation for
211211
:ref:`the dis module <bytecodes>`.
212212

213+
callable
214+
A callable is an object that can be called, possibly with a set
215+
of arguments (see :term:`argument`), with the following syntax::
216+
217+
callable(argument1, argument2, ...)
218+
219+
A :term:`function`, and by extension a :term:`method`, is a callable.
220+
An instance of a class that implements the :meth:`~object.__call__`
221+
method is also a callable.
222+
213223
callback
214224
A subroutine function which is passed as an argument to be executed at
215225
some point in the future.

0 commit comments

Comments
 (0)