[Python-checkins] gh-95276: Add callable entry to the glossary (GH-95738)

miss-islington webhook-mailer at python.org
Tue Oct 11 22:49:28 EDT 2022


https://github.com/python/cpython/commit/f94e6b4c42db0d73b910fc6a78f04afd7bbf7ad8
commit: f94e6b4c42db0d73b910fc6a78f04afd7bbf7ad8
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-11T19:49:23-07:00
summary:

gh-95276: Add callable entry to the glossary (GH-95738)

(cherry picked from commit e3bf125c81d5da0734429c1cb6ae75e6086e35ae)

Co-authored-by: MonadChains <monadchains at gmail.com>

files:
M Doc/glossary.rst

diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index aa9768f0353c..c4231e772878 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -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.



More information about the Python-checkins mailing list