MCPcopy Create free account
hub / github.com/ipython/ipython / is_simple_callable

Function is_simple_callable

IPython/core/oinspect.py:194–197  ·  view source on GitHub ↗

True if obj is a function ()

(obj)

Source from the content-addressed store, hash-verified

192
193
194def 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
200def getargspec(obj):

Callers 3

getargspecFunction · 0.85
_get_infoMethod · 0.85
_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected