2.1.5. czekitout.check.if_callable
- if_callable(obj, obj_name)[source]
Check whether input object is callable.
If the input object is not callable, then a TypeError exception is raised with the message:
The object ``<obj_name>`` must be callable.
where <obj_name> is replaced by the contents of the string
obj_name
.- Parameters:
- objany type
Input object.
- obj_namestr
Name of the input object.