• Home
  • Raw
  • Download

Lines Matching full:inspect

62 import inspect
99 if not inspect.isclass(cls):
104 if inspect.ismethod(obj):
107 if (inspect.isclass(self) and
113 elif inspect.isfunction(obj):
118 elif inspect.isbuiltin(obj):
121 if (inspect.isclass(self) and
134 elif inspect.ismethoddescriptor(obj) or inspect.isdatadescriptor(obj):
139 if inspect.ismemberdescriptor(obj):
183 return inspect.cleandoc(doc)
187 result = _getdoc(object) or inspect.getcomments(object)
208 return not (inspect.ismodule(object) or inspect.isclass(object) or
209 inspect.isroutine(object) or inspect.isframe(object) or
210 inspect.istraceback(object) or inspect.iscode(object))
238 if inspect.ismethod(fn):
240 if inspect.isbuiltin(fn):
242 return not (inspect.ismodule(self) or (self is None))
248 for key, value in inspect.getmembers(cl, inspect.isroutine):
294 """Wrap inspect.classify_class_attrs, with fixup for data descriptors."""
296 for (name, kind, cls, value) in inspect.classify_class_attrs(object):
297 if inspect.isdatadescriptor(value):
467 # 'try' clause is to attempt to handle the possibility that inspect
472 if inspect.ismodule(object): return self.docmodule(*args)
473 if inspect.isclass(object): return self.docclass(*args)
474 if inspect.isroutine(object): return self.docroutine(*args)
477 if inspect.isdatadescriptor(object): return self.docdata(*args)
492 file = inspect.getabsfile(object)
717 """Produce HTML for a class tree as given by inspect.getclasstree()."""
751 path = inspect.getabsfile(object)
775 modules = inspect.getmembers(object, inspect.ismodule)
778 for key, value in inspect.getmembers(object, inspect.isclass):
781 (inspect.getmodule(value) or object) is object):
794 for key, value in inspect.getmembers(object, inspect.isroutine):
797 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
801 if inspect.isfunction(value): fdict[value] = fdict[key]
803 for key, value in inspect.getmembers(object, isdata):
828 self.formattree(inspect.getclasstree(classlist, 1), name)]
877 mro = deque(inspect.getmro(object))
1002 signature = inspect.signature(object)
1042 if (inspect.iscoroutinefunction(object) or
1043 inspect.isasyncgenfunction(object)):
1051 if cl and inspect.getattr_static(cl, realname, []) is object:
1060 if inspect.isroutine(object):
1062 signature = inspect.signature(object)
1184 """Render in text a class tree as returned by inspect.getclasstree()."""
1220 for key, value in inspect.getmembers(object, inspect.isclass):
1223 or (inspect.getmodule(value) or object) is object):
1227 for key, value in inspect.getmembers(object, inspect.isroutine):
1230 inspect.isbuiltin(value) or inspect.getmodule(value) is object):
1234 for key, value in inspect.getmembers(object, isdata):
1254 for key, value in inspect.getmembers(object, inspect.ismodule):
1265 inspect.getclasstree(classlist, 1), name)]
1294 file = inspect.getabsfile(object)
1321 signature = inspect.signature(object)
1334 mro = deque(inspect.getmro(object))
1476 if (inspect.iscoroutinefunction(object) or
1477 inspect.isasyncgenfunction(object)):
1485 if cl and inspect.getattr_static(cl, realname, []) is object:
1490 if inspect.isroutine(object):
1492 signature = inspect.signature(object)
1685 if inspect.ismodule(thing):
1692 if inspect.isbuiltin(thing):
1694 if inspect.isgetsetdescriptor(thing):
1698 if inspect.ismemberdescriptor(thing):
1702 if inspect.isclass(thing):
1704 if inspect.isfunction(thing):
1706 if inspect.ismethod(thing):
1756 module = inspect.getmodule(object)
1762 if not (inspect.ismodule(object) or
1763 inspect.isclass(object) or
1764 inspect.isroutine(object) or
1765 inspect.isdatadescriptor(object) or
1895 'FUNCTIONS CLASSES MODULES FILES inspect'),
1993 if inspect.stack()[1][3] == '?':