I studied introspection in Python, and as I went through the basic examples, I found out that the callable built-in function callable no longer available in Python 3.1.
callable
How to check if a method can now be called?
thanks
if hasattr(f, "__call__"):
What's New in Python 3.0
The built-in callable () function from Py2.x was resurrected in python3.2.
isinstance(f, collections.Callable)