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

17 lines
331 B
Python
Raw Normal View History

2024-07-01 09:49:57 +00:00
"""
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)