True if obj is a function ()
(obj)
| 192 | |
| 193 | |
| 194 | def is_simple_callable(obj): |
| 195 | """True if obj is a function ()""" |
| 196 | return (inspect.isfunction(obj) or inspect.ismethod(obj) or \ |
| 197 | isinstance(obj, _builtin_func_type) or isinstance(obj, _builtin_meth_type)) |
| 198 | |
| 199 | @undoc |
| 200 | def getargspec(obj): |
no outgoing calls
no test coverage detected