Lines Matching refs:inspect
97 import inspect
205 if inspect.ismodule(module):
384 if not inspect.ismodule(module):
887 module = inspect.getmodule(obj)
893 file = inspect.getsourcefile(obj)
900 file = inspect.getfile(obj)
947 elif inspect.getmodule(object) is not None:
948 return module is inspect.getmodule(object)
949 elif inspect.isfunction(object):
951 elif inspect.ismethoddescriptor(object):
959 elif inspect.isclass(object):
987 if inspect.ismodule(obj) and self._recurse:
991 if ((inspect.isroutine(inspect.unwrap(val))
992 or inspect.isclass(val)) and
998 if inspect.ismodule(obj) and self._recurse:
1004 if not (inspect.isroutine(val) or inspect.isclass(val) or
1005 inspect.ismodule(val) or isinstance(val, str)):
1015 if inspect.isclass(obj) and self._recurse:
1024 if ((inspect.isroutine(val) or inspect.isclass(val) or
1076 if inspect.ismodule(obj):
1082 if inspect.isclass(obj):
1093 if inspect.ismethod(obj): obj = obj.__func__
1094 if inspect.isfunction(obj): obj = obj.__code__
1095 if inspect.istraceback(obj): obj = obj.tb_frame
1096 if inspect.isframe(obj): obj = obj.f_code
1097 if inspect.iscode(obj):
1932 if not inspect.ismodule(m):