8000 gh-95276: Add callable entry to the glossary by MonadChains · Pull Request #95738 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95276: Add callable entry to the glossary #95738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 12, 2022
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
Prev Previous commit
Next Next commit
improve entry
  • Loading branch information
MonadChains committed Aug 6, 2022
commit c51fdc16baf30f744e179f62dea9a5b86be8d780
10 changes: 7 additions & 3 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,13 @@ Glossary
: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__`
A callable is an object that is possible to execute, 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
Expand Down
0