callableobject

noun
UK /ˈkɔːləbl ˈɒbdʒɪkt/
US /ˈkɔːləbl ˈɑːbdʒekt/

A callable object is a thing in a computer program that you can use like a function.

In Python, a function is a callable object that you can run by writing its name.


OTHER MEANINGS

2. In programming, an object that implements a special method so it can be invoked with parentheses.

The class defines __call__, making each instance a callable object.

3. A value that can be passed to code expecting a function and then executed.

We stored the callable object in a variable and called it later.

4. Any entity that accepts arguments and returns a result when invoked.

The scheduler accepts any callable object as a job.