Home
last modified time | relevance | path

Searched refs:inspect (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/external/python/cpython3/Lib/test/
Dtest_inspect.py6 import inspect
86 predicates = set([inspect.isbuiltin, inspect.isclass, inspect.iscode,
87 inspect.isframe, inspect.isfunction, inspect.ismethod,
88 inspect.ismodule, inspect.istraceback,
89 inspect.isgenerator, inspect.isgeneratorfunction,
90 inspect.iscoroutine, inspect.iscoroutinefunction,
91 inspect.isasyncgen, inspect.isasyncgenfunction])
98 if (predicate == inspect.isgeneratorfunction or \
99 predicate == inspect.isasyncgenfunction or \
100 predicate == inspect.iscoroutinefunction) and \
[all …]
Dinspect_fodder.py4 import sys, inspect
15 fr = inspect.currentframe()
16 st = inspect.stack()
46 self.tr = inspect.trace()
78 currentframe = inspect.currentframe()
/external/python/cpython2/Lib/test/
Dtest_inspect.py5 import inspect
50 predicates = set([inspect.isbuiltin, inspect.isclass, inspect.iscode,
51 inspect.isframe, inspect.isfunction, inspect.ismethod,
52 inspect.ismodule, inspect.istraceback,
53 inspect.isgenerator, inspect.isgeneratorfunction])
60 if predicate == inspect.isgeneratorfunction and\
61 other == inspect.isfunction:
71 count = len(filter(lambda x:x.startswith('is'), dir(inspect)))
80 self.istest(inspect.isbuiltin, 'sys.exit')
81 self.istest(inspect.isbuiltin, '[].append')
[all …]
Dinspect_fodder.py4 import sys, inspect
15 fr = inspect.currentframe()
16 st = inspect.stack()
46 self.tr = inspect.trace()
60 currentframe = inspect.currentframe()
/external/python/funcsigs/tests/
Dtest_inspect.py11 import funcsigs as inspect namespace
17 sig = inspect.signature(func)
71 sig = inspect.signature(test)
127 inspect.signature(type)
130 inspect.signature(type.__call__)
135 inspect.signature(min.__call__)
141 inspect.signature(min)
145 inspect.signature(42)
148 inspect.Signature.from_function(42)
515 inspect.signature(Spam())
[all …]
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_utils.py22 import inspect
58 return hasattr(inspect, 'signature')
117 if not hasattr(inspect, 'signature'):
123 return inspect.signature(f)
142 inspect.Parameter(name, inspect.Parameter.POSITIONAL_ONLY)
147 inspect.Parameter(
148 name, inspect.Parameter.POSITIONAL_ONLY, default=None)
152 inspect.Parameter(
154 inspect.Parameter.POSITIONAL_OR_KEYWORD,
158 inspect.Parameter(name, inspect.Parameter.KEYWORD_ONLY, default=default)
[all …]
/external/python/pyfakefs/pyfakefs/
Dmox3_stubout.py27 import inspect
75 if (inspect.ismodule(obj) or
76 (not inspect.isclass(obj) and attr_name in obj.__dict__)):
81 if not inspect.isclass(obj):
82 mro = list(inspect.getmro(obj.__class__))
84 mro = list(inspect.getmro(obj))
/external/protobuf/python/
Dstubout.py20 import inspect
65 if (inspect.ismodule(obj) or
66 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))):
71 if not inspect.isclass(obj):
72 mro = list(inspect.getmro(obj.__class__))
74 mro = list(inspect.getmro(obj))
/external/python/cpython3/Lib/
Dpydoc.py62 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)
[all …]
/external/python/cpython2/Lib/
Dpydoc.py56 import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
84 result = inspect.getdoc(object) or inspect.getcomments(object)
106 return not (inspect.ismodule(object) or inspect.isclass(object) or
107 inspect.isroutine(object) or inspect.isframe(object) or
108 inspect.istraceback(object) or inspect.iscode(object))
132 return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
136 for key, value in inspect.getmembers(cl, _is_some_method):
182 if inspect.isdatadescriptor(value):
185 return map(fixup, inspect.classify_class_attrs(object))
249 info = inspect.getmoduleinfo(filename)
[all …]
/external/pigweed/pw_rpc/py/pw_rpc/console_tools/
Dfunctions.py16 import inspect
28 def format_parameter(param: inspect.Parameter) -> str:
50 def format_signature(name: str, signature: inspect.Signature) -> str:
69 function.__name__, inspect.signature(function, follow_wrapped=False))
71 docs = inspect.getdoc(function) or '(no docstring)'
/external/tensorflow/tensorflow/python/framework/
Dtraceable_stack_test.py24 from tensorflow.python.util import tf_inspect as inspect unknown
27 _THIS_FILENAME = inspect.getsourcefile(_LOCAL_OBJECT)
41 expected_lineno = inspect.getsourcelines(placeholder)[1] + 1
59 expected_lineno = inspect.getsourcelines(placeholder)[1] + 1
130 expected_lineno_1 = inspect.getsourcelines(placeholder_1)[1] + 1
131 expected_lineno_2 = inspect.getsourcelines(placeholder_2)[1] + 1
/external/python/cpython3/Lib/asyncio/
Dcoroutines.py5 import inspect
40 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen
114 if inspect.iscoroutinefunction(func):
119 if inspect.isgeneratorfunction(func):
125 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
166 return (inspect.iscoroutinefunction(func) or
252 not inspect.isgeneratorfunction(coro.func)):
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils.py24 import inspect
92 elif inspect.isbuiltin(f):
114 inspect.isclass(cls)
135 obj_file = inspect.getfile(obj)
151 lines, lnum = inspect.findsource(obj)
152 return ''.join(inspect.getblock(lines[lnum:]))
258 for superclass in reversed(inspect.getmro(owner_class)):
302 if inspect.isclass(m_self):
/external/rust/crates/rayon/tests/
Diter_panic.rs43 assert_eq!(count(iter.clone().inspect(check)), expected); in iter_panic_fuse()
46 assert!(count(iter.clone().inspect(check).panic_fuse()) < expected); in iter_panic_fuse()
47 assert!(count(iter.clone().panic_fuse().inspect(check)) < expected); in iter_panic_fuse()
50 assert!(count(iter.clone().panic_fuse().inspect(check).rev()) < expected); in iter_panic_fuse()
/external/chromium-trace/catapult/common/py_utils/py_utils/
Ddiscover.py7 import inspect
134 for _, obj in inspect.getmembers(module):
136 if not inspect.isclass(obj):
169 assert inspect.isclass(cls)
177 args, _, _, defaults = inspect.getargspec(cls.__init__)
Dclass_util.py5 import inspect
8 assert inspect.isclass(parent_cls), '%s should be a class' % parent_cls
9 assert inspect.isclass(child_cls), '%s should be a class' % child_cls
/external/llvm-project/debuginfo-tests/dexter/dex/debugger/visualstudio/windows/
DComInterface.py9 import inspect
91 assert (inspect.isfunction(fn) or inspect.ismethod(fn)
92 or inspect.isbuiltin(fn)), (fn, type(fn))
98 if inspect.ismethod(result) or 'win32com' in str(
/external/llvm-project/lldb/packages/Python/lldbsuite/
D__init__.py3 import inspect
10 os.path.dirname(inspect.getfile(inspect.currentframe())))
/external/python/cpython2/Mac/PythonLauncher/
DFileSettings.m75 inspect = source->inspect;
185 inspect = [source inspect];
201 [NSNumber numberWithBool: inspect], @"inspect",
226 value = [dict objectForKey: @"inspect"];
227 if (value) inspect = [value boolValue];
282 inspect?" -i":"",
299 - (BOOL) inspect { return inspect;}; method
/external/python/cpython3/Mac/PythonLauncher/
DFileSettings.m75 inspect = source->inspect;
185 inspect = [source inspect];
201 [NSNumber numberWithBool: inspect], @"inspect",
226 value = [dict objectForKey: @"inspect"];
227 if (value) inspect = [value boolValue];
282 inspect?" -i":"",
299 - (BOOL) inspect { return inspect;}; method
/external/llvm-project/lldb/scripts/
Duse_lldb_suite.py1 import inspect
7 lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
/external/llvm-project/lldb/
Duse_lldb_suite_root.py1 import inspect
22 lldb_root = os.path.dirname(inspect.getfile(inspect.currentframe()))
/external/llvm-project/lldb/test/API/
Duse_lldb_suite.py1 import inspect
8 os.path.dirname(inspect.getfile(inspect.currentframe())))
/external/python/mock/mock/tests/
Dtesthelpers_py3.py1 import inspect
20 self.assertEqual(inspect.getfullargspec(mock), inspect.getfullargspec(foo))

12345678910>>...20