Skip to content

Commit 04e411e

Browse files
committed
pythongh-95276: Add callable entry to the glossary
1 parent 15f4a35 commit 04e411e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/glossary.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ 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 has the pointer :c:member:`~PyTypeObject.tp_call`
208+
not ``NULL`` and set to a function. Python functions and object methods
209+
are callables. An instance of a class that implements the :meth:`~object.__call__`
210+
method is also a callable.
211+
206212
callback
207213
A subroutine function which is passed as an argument to be executed at
208214
some point in the future.

0 commit comments

Comments
 (0)