Lines Matching refs:inspect
97 import inspect
205 if inspect.ismodule(module):
392 if not inspect.ismodule(module):
895 module = inspect.getmodule(obj)
901 file = inspect.getsourcefile(obj)
908 file = inspect.getfile(obj)
955 elif inspect.getmodule(object) is not None:
956 return module is inspect.getmodule(object)
957 elif inspect.isfunction(object):
959 elif (inspect.ismethoddescriptor(object) or
960 inspect.ismethodwrapper(object)):
968 elif inspect.isclass(object):
983 maybe_routine = inspect.unwrap(maybe_routine)
986 return inspect.isroutine(maybe_routine)
1007 if inspect.ismodule(obj) and self._recurse:
1012 if ((self._is_routine(val) or inspect.isclass(val)) and
1018 if inspect.ismodule(obj) and self._recurse:
1024 if not (inspect.isroutine(val) or inspect.isclass(val) or
1025 inspect.ismodule(val) or isinstance(val, str)):
1035 if inspect.isclass(obj) and self._recurse:
1042 if ((inspect.isroutine(val) or inspect.isclass(val) or
1097 if inspect.ismodule(obj) and docstring is not None:
1103 if inspect.isclass(obj) and docstring is not None:
1114 if inspect.ismethod(obj): obj = obj.__func__
1115 if inspect.isfunction(obj) and getattr(obj, '__doc__', None):
1118 if inspect.istraceback(obj): obj = obj.tb_frame
1119 if inspect.isframe(obj): obj = obj.f_code
1120 if inspect.iscode(obj):
1955 if not inspect.ismodule(m):
2784 # Verbose used to be handled by the "inspect argv" magic in DocTestRunner,