17 lines
331 B
Python
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)
|