Lines Matching refs:inspect
62 import inspect
94 result = inspect.getdoc(object) or inspect.getcomments(object)
115 return not (inspect.ismodule(object) or inspect.isclass(object) or
116 inspect.isroutine(object) or inspect.isframe(object) or
117 inspect.istraceback(object) or inspect.iscode(object))
141 return (inspect.isfunction(obj) or
142 inspect.ismethod(obj) or
143 inspect.isbuiltin(obj) or
144 inspect.ismethoddescriptor(obj))
151 if inspect.ismethod(fn):
153 if inspect.isbuiltin(fn):
155 return not (inspect.ismodule(self) or (self is None))
161 for key, value in inspect.getmembers(cl, _is_some_method):
209 for (name, kind, cls, value) in inspect.classify_class_attrs(object):
210 if inspect.isdatadescriptor(value):
382 if inspect.isgetsetdescriptor(object): return self.docdata(*args)
383 if inspect.ismemberdescriptor(object): return self.docdata(*args)
385 if inspect.ismodule(object): return self.docmodule(*args)
386 if inspect.isclass(object): return self.docclass(*args)
387 if inspect.isroutine(object): return self.docroutine(*args)
407 file = inspect.getabsfile(object)
666 path = inspect.getabsfile(object)
690 modules = inspect.getmembers(object, inspect.ismodule)
693 for key, value in inspect.getmembers(object, inspect.isclass):
696 (inspect.getmodule(value) or object) is object):
709 for key, value in inspect.getmembers(object, inspect.isroutine):
712 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
716 if inspect.isfunction(value): fdict[value] = fdict[key]
718 for key, value in inspect.getmembers(object, isdata):
743 self.formattree(inspect.getclasstree(classlist, 1), name)]
792 mro = deque(inspect.getmro(object))
835 if callable(value) or inspect.isdatadescriptor(value):
918 signature = inspect.signature(object)
961 if cl and inspect.getattr_static(cl, realname, []) is object:
970 if inspect.isroutine(object):
972 signature = inspect.signature(object)
1135 for key, value in inspect.getmembers(object, inspect.isclass):
1138 or (inspect.getmodule(value) or object) is object):
1142 for key, value in inspect.getmembers(object, inspect.isroutine):
1145 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
1149 for key, value in inspect.getmembers(object, isdata):
1169 for key, value in inspect.getmembers(object, inspect.ismodule):
1180 inspect.getclasstree(classlist, 1), name)]
1209 file = inspect.getabsfile(object)
1236 signature = inspect.signature(object)
1249 mro = deque(inspect.getmro(object))
1298 if callable(value) or inspect.isdatadescriptor(value):
1377 if cl and inspect.getattr_static(cl, realname, []) is object:
1382 if inspect.isroutine(object):
1384 signature = inspect.signature(object)
1578 if inspect.ismodule(thing):
1585 if inspect.isbuiltin(thing):
1587 if inspect.isgetsetdescriptor(thing):
1591 if inspect.ismemberdescriptor(thing):
1595 if inspect.isclass(thing):
1597 if inspect.isfunction(thing):
1599 if inspect.ismethod(thing):
1649 module = inspect.getmodule(object)
1655 if not (inspect.ismodule(object) or
1656 inspect.isclass(object) or
1657 inspect.isroutine(object) or
1658 inspect.isgetsetdescriptor(object) or
1659 inspect.ismemberdescriptor(object) or
1884 if inspect.stack()[1][3] == '?':