Lines Matching refs:inspect
56 import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
84 result = inspect.getdoc(object) or inspect.getcomments(object)
106 return not (inspect.ismodule(object) or inspect.isclass(object) or
107 inspect.isroutine(object) or inspect.isframe(object) or
108 inspect.istraceback(object) or inspect.iscode(object))
132 return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
136 for key, value in inspect.getmembers(cl, _is_some_method):
182 if inspect.isdatadescriptor(value):
185 return map(fixup, inspect.classify_class_attrs(object))
249 info = inspect.getmoduleinfo(filename)
358 if inspect.isgetsetdescriptor(object): return self.docdata(*args)
359 if inspect.ismemberdescriptor(object): return self.docdata(*args)
361 if inspect.ismodule(object): return self.docmodule(*args)
362 if inspect.isclass(object): return self.docclass(*args)
363 if inspect.isroutine(object): return self.docroutine(*args)
383 file = inspect.getabsfile(object)
638 path = inspect.getabsfile(object)
665 modules = inspect.getmembers(object, inspect.ismodule)
668 for key, value in inspect.getmembers(object, inspect.isclass):
671 (inspect.getmodule(value) or object) is object):
684 for key, value in inspect.getmembers(object, inspect.isroutine):
687 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
691 if inspect.isfunction(value): fdict[value] = fdict[key]
693 for key, value in inspect.getmembers(object, isdata):
718 self.formattree(inspect.getclasstree(classlist, 1), name)]
767 mro = deque(inspect.getmro(object))
811 inspect.isdatadescriptor(value)):
910 if inspect.ismethod(object):
935 if inspect.isfunction(object):
936 args, varargs, varkw, defaults = inspect.getargspec(object)
937 argspec = inspect.formatargspec(
1082 file = inspect.getabsfile(object)
1095 for key, value in inspect.getmembers(object, inspect.isclass):
1098 or (inspect.getmodule(value) or object) is object):
1102 for key, value in inspect.getmembers(object, inspect.isroutine):
1105 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
1109 for key, value in inspect.getmembers(object, isdata):
1129 for key, value in inspect.getmembers(object, inspect.ismodule):
1140 inspect.getclasstree(classlist, 1), name)]
1192 mro = deque(inspect.getmro(object))
1242 inspect.isdatadescriptor(value)):
1300 if inspect.ismethod(object):
1320 if inspect.isfunction(object):
1321 args, varargs, varkw, defaults = inspect.getargspec(object)
1322 argspec = inspect.formatargspec(
1486 if inspect.ismodule(thing):
1493 if inspect.isbuiltin(thing):
1495 if inspect.isgetsetdescriptor(thing):
1499 if inspect.ismemberdescriptor(thing):
1503 if inspect.isclass(thing):
1505 if inspect.isfunction(thing):
1507 if inspect.ismethod(thing):
1555 module = inspect.getmodule(object)
1564 elif not (inspect.ismodule(object) or
1565 inspect.isclass(object) or
1566 inspect.isroutine(object) or
1567 inspect.isgetsetdescriptor(object) or
1568 inspect.ismemberdescriptor(object) or
1788 if inspect.stack()[1][3] == '?':