Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf94e6b4

Browse files
gh-95276: Add callable entry to the glossary (GH-95738)
(cherry picked from commite3bf125)Co-authored-by: MonadChains <monadchains@gmail.com>
1 parent48447d4 commitf94e6b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎Doc/glossary.rst‎

Lines changed: 10 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp