Name

callable

Synopsis

callable(obj)

Returns True if obj can be called, otherwise False. An object can be called if it is a function, method, class, type, or an instance with a __call__ method. See also __call__ in Chapter 5.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.