callable
- noun
- /ˈkɔːləbəl/
- Specialized
- The function is callable from any part of the code.
Examples
-
In Python, a callable is any object that can be invoked with parentheses to run code.
-
To test, she passed a simple callable returning a fixed value instead of a complex service.
-
The library's API accepts a callable parameter to customize how each item is processed asynchronously.
-
Is this method callable when the object is not initialized?
-
In computer programming, a callable can refer to a function that is designed to be executed when called.
-
The library provides a callable that allows users to easily set up event listeners.
-
When developing in Python, you can pass a callable object as a parameter to execute a specific operation.
Surface Forms
Morphology
callable = callable (semi-transparent) = call + able
The noun is a conversion of the adjective 'callable', which itself is transparently built from 'call' + '-able'.
Etymology
Callable comes from the word call 'to call' and the ending -able 'able'. In computing, a callable is something you can 'call' to make it run or give a result, which is why the name means 'able to be called'.