Innovenergy_trunk/firmware/Venus_Release/VenusReleaseFiles/pika-0.13.1/pika/utils.py

17 lines
331 B
Python

"""
Non-module specific functions shared by modules in the pika package
"""
import collections
def is_callable(handle):
"""Returns a bool value if the handle passed in is a callable
method/function
:param any handle: The object to check
:rtype: bool
"""
return isinstance(handle, collections.Callable)