Lines Matching refs:inspect
98 import sys, traceback, inspect, linecache, os, re
200 if inspect.ismodule(module):
392 if not inspect.ismodule(module):
890 module = inspect.getmodule(obj)
896 file = inspect.getsourcefile(obj) or inspect.getfile(obj)
941 elif inspect.getmodule(object) is not None:
942 return module is inspect.getmodule(object)
943 elif inspect.isfunction(object):
945 elif inspect.isclass(object):
973 if inspect.ismodule(obj) and self._recurse:
977 if ((inspect.isfunction(val) or inspect.isclass(val)) and
983 if inspect.ismodule(obj) and self._recurse:
989 if not (inspect.isfunction(val) or inspect.isclass(val) or
990 inspect.ismethod(val) or inspect.ismodule(val) or
1001 if inspect.isclass(obj) and self._recurse:
1010 if ((inspect.isfunction(val) or inspect.isclass(val) or
1062 if inspect.ismodule(obj):
1068 if inspect.isclass(obj):
1079 if inspect.ismethod(obj): obj = obj.im_func
1080 if inspect.isfunction(obj): obj = obj.func_code
1081 if inspect.istraceback(obj): obj = obj.tb_frame
1082 if inspect.isframe(obj): obj = obj.f_code
1083 if inspect.iscode(obj):
1895 if not inspect.ismodule(m):
2085 if mod is not None and not inspect.ismodule(mod):