Home | History | Annotate | Download | only in python2.7

Lines Matching refs:inspect

55 import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
83 result = inspect.getdoc(object) or inspect.getcomments(object)
104 return not (inspect.ismodule(object) or inspect.isclass(object) or
105 inspect.isroutine(object) or inspect.isframe(object) or
106 inspect.istraceback(object) or inspect.iscode(object))
130 return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
134 for key, value in inspect.getmembers(cl, _is_some_method):
177 """Wrap inspect.classify_class_attrs, with fixup for data descriptors."""
180 if inspect.isdatadescriptor(value):
183 return map(fixup, inspect.classify_class_attrs(object))
217 info = inspect.getmoduleinfo(filename)
322 # 'try' clause is to attempt to handle the possibility that inspect
326 if inspect.isgetsetdescriptor(object): return self.docdata(*args)
327 if inspect.ismemberdescriptor(object): return self.docdata(*args)
329 if inspect.ismodule(object): return self.docmodule(*args)
330 if inspect.isclass(object): return self.docclass(*args)
331 if inspect.isroutine(object): return self.docroutine(*args)
349 file = inspect.getabsfile(object)
565 """Produce HTML for a class tree as given by inspect.getclasstree()."""
599 path = inspect.getabsfile(object)
626 modules = inspect.getmembers(object, inspect.ismodule)
629 for key, value in inspect.getmembers(object, inspect.isclass):
632 (inspect.getmodule(value) or object) is object):
645 for key, value in inspect.getmembers(object, inspect.isroutine):
648 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
652 if inspect.isfunction(value): fdict[value] = fdict[key]
654 for key, value in inspect.getmembers(object, isdata):
679 self.formattree(inspect.getclasstree(classlist, 1), name)]
728 mro = deque(inspect.getmro(object))
772 inspect.isdatadescriptor(value)):
871 if inspect.ismethod(object):
896 if inspect.isfunction(object):
897 args, varargs, varkw, defaults = inspect.getargspec(object)
898 argspec = inspect.formatargspec(
1016 """Render in text a class tree as returned by inspect.getclasstree()."""
1043 file = inspect.getabsfile(object)
1056 for key, value in inspect.getmembers(object, inspect.isclass):
1059 or (inspect.getmodule(value) or object) is object):
1063 for key, value in inspect.getmembers(object, inspect.isroutine):
1066 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
1070 for key, value in inspect.getmembers(object, isdata):
1090 for key, value in inspect.getmembers(object, inspect.ismodule):
1101 inspect.getclasstree(classlist, 1), name)]
1153 mro = deque(inspect.getmro(object))
1203 inspect.isdatadescriptor(value)):
1261 if inspect.ismethod(object):
1281 if inspect.isfunction(object):
1282 args, varargs, varkw, defaults = inspect.getargspec(object)
1283 argspec = inspect.formatargspec(
1439 if inspect.ismodule(thing):
1446 if inspect.isbuiltin(thing):
1448 if inspect.isgetsetdescriptor(thing):
1452 if inspect.ismemberdescriptor(thing):
1456 if inspect.isclass(thing):
1458 if inspect.isfunction(thing):
1460 if inspect.ismethod(thing):
1508 module = inspect.getmodule(object)
1517 elif not (inspect.ismodule(object) or
1518 inspect.isclass(object) or
1519 inspect.isroutine(object) or
1520 inspect.isgetsetdescriptor(object) or
1521 inspect.ismemberdescriptor(object) or
1640 'FUNCTIONS CLASSES MODULES FILES inspect'),
1740 if inspect.stack()[1][3] == '?':