Home
last modified time | relevance | path

Searched full:inspect (Results 1 – 25 of 1353) sorted by relevance

12345678910>>...55

/external/python/cpython3/Lib/test/
Dtest_inspect.py6 import inspect
91 predicates = set([inspect.isbuiltin, inspect.isclass, inspect.iscode,
92 inspect.isframe, inspect.isfunction, inspect.ismethod,
93 inspect.ismodule, inspect.istraceback,
94 inspect.isgenerator, inspect.isgeneratorfunction,
95 inspect.iscoroutine, inspect.iscoroutinefunction,
96 inspect.isasyncgen, inspect.isasyncgenfunction])
103 if (predicate == inspect.isgeneratorfunction or \
104 predicate == inspect.isasyncgenfunction or \
105 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)))
72 # This test is here for remember you to update Doc/library/inspect.rst
80 self.istest(inspect.isbuiltin, 'sys.exit')
[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/tensorflow/tensorflow/python/util/
Dtf_inspect.py15 """TFDecorator-aware replacements for the inspect module."""
18 import inspect as _inspect
25 # inspect.signature() is preferred over inspect.getfullargspec() in PY3.
30 """TFDecorator-aware replacement for inspect.signature."""
75 target: the target object to inspect.
95 target: the target object to inspect.
104 """TFDecorator-aware replacement for inspect.currentframe."""
109 """TFDecorator-aware replacement for `inspect.getargspec`.
166 An `inspect.ArgSpec`
248 """TFDecorator-aware replacement for `inspect.getfullargspec`.
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_inspect.py15 """TFDecorator-aware replacements for the inspect module."""
19 import inspect as _inspect
60 target: the target object to inspect.
80 target: the target object to inspect.
89 """TFDecorator-aware replacement for inspect.currentframe."""
94 """TFDecorator-aware replacement for `inspect.getargspec`.
151 An `inspect.ArgSpec`
234 """TFDecorator-aware replacement for `inspect.getfullargspec`.
236 This wrapper emulates `inspect.getfullargspec` in[^)]* Python2.
244 callable is not decorated, `inspect.getfullargspec()` will be called
[all …]
/external/armnn/python/pyarmnn/test/
Dtest_generated.py3 import inspect
27 inspect.getmembers(generated_armnn, inspect.isclass) +
28 inspect.getmembers(generated_deserializer, inspect.isclass) +
29 inspect.getmembers(generated_tflite, inspect.isclass) +
30 inspect.getmembers(generated_onnx, inspect.isclass)))
/external/rust/crates/rayon/src/iter/
Dinspect.rs7 /// `Inspect` is an iterator that calls a function with a reference to each
10 /// This struct is created by the [`inspect()`] method on [`ParallelIterator`]
12 /// [`inspect()`]: trait.ParallelIterator.html#method.inspect
16 pub struct Inspect<I: ParallelIterator, F> { struct
21 impl<I: ParallelIterator + Debug, F> Debug for Inspect<I, F> { implementation
23 f.debug_struct("Inspect").field("base", &self.base).finish() in fmt()
27 impl<I, F> Inspect<I, F> impl
31 /// Creates a new `Inspect` iterator.
33 Inspect { base, inspect_op } in new()
37 impl<I, F> ParallelIterator for Inspect<I, F> implementation
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cMultiBindTests.hpp161 * - inspect if bindings were modified;
165 * - inspect if bindings were modified;
168 * - inspect if bindings were modified;
173 * - inspect if all bindings but first were modified;
178 * - inspect if bindings were modified;
205 * - inspect if bindings were modified;
209 * - inspect if bindings were modified;
212 * - inspect if bindings were modified;
217 * - inspect if all bindings but first were modified;
222 * - inspect if bindings were modified;
[all …]
/external/deqp/external/openglcts/modules/common/
DglcKHRDebugTests.hpp239 * - inspect message log to check if the message is reported;
240 * - inspect message log again, there should be no messages;
244 * - inspect message log again, there should be no messages;
253 * - inspect message log to check there are no messages;
258 * - inspect message log to check there are no messages;
270 * - inspect message log to check there are no messages;
281 * - inspect message log to check there are no messages;
292 * - inspect first half of the message log by specifying proper <count>; Verify
297 * - inspect rest of the message log with <bufSize> too small to held last
342 * - inspect message log to check if the message is reported;
[all …]
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_utils.py18 import inspect
54 return hasattr(inspect, 'signature')
110 """An enhanced inspect.signature that can handle numpy.ufunc."""
111 # TODO(wangpeng): consider migrating away from inspect.signature.
112 # inspect.signature is supported in Python 3.3.
113 if not hasattr(inspect, 'signature'):
119 return inspect.signature(f)
138 inspect.Parameter(name, inspect.Parameter.POSITIONAL_ONLY)
143 inspect.Parameter(
144 name, inspect.Parameter.POSITIONAL_ONLY, default=None)
[all …]
/external/antlr/runtime/Ruby/test/functional/ast-output/
Dtree-rewrite.rb844 # self.buf += $s.start.inspect
1014 stree = result.tree.nil? ? '' : result.tree.inspect
1028 stree = result.tree.nil? ? '' : result.tree.inspect
1042 result.inspect.should == '(34 abc)'
1052 result.inspect.should == '34'
1065 stree = result.tree.nil? ? '' : result.tree.inspect
1079 stree = result.tree.nil? ? '' : result.tree.inspect
1093 stree = result.tree.nil? ? '' : result.tree.inspect
1107 stree = result.tree.nil? ? '' : result.tree.inspect
1121 stree = result.tree.nil? ? '' : result.tree.inspect
[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):
179 """Wrap inspect.classify_class_attrs, with fixup for data descriptors."""
182 if inspect.isdatadescriptor(value):
185 return map(fixup, inspect.classify_class_attrs(object))
[all …]
/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/openthread/tests/scripts/thread-cert/
DREADME.md5 Inspect nodes status by the following modification:
7 1. Insert the inspector to where you want to inspect.
11 debug.Inspector(self).inspect()
20 3. Inspect
39 This is selection mode. You may select the node to inspect here.
/external/pigweed/pw_console/py/
Dhelp_window_test.py16 import inspect
114 additional_help_text=inspect.cleandoc(
126 inspect.cleandoc(
135 inspect.cleandoc(
143 inspect.cleandoc(
153 inspect.cleandoc(
161 inspect.cleandoc(
/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/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/grpc-grpc/src/ruby/bin/
Dmath_client.rb48 GRPC.logger.info("div(7/3): req=#{req.inspect}")
50 GRPC.logger.info("Answer: #{resp.inspect}")
59 GRPC.logger.info("sum(1, 2, 3, 4, 5): reqs=#{reqs.inspect}")
61 GRPC.logger.info("Answer: #{resp.inspect}")
69 GRPC.logger.info("fib(11): req=#{req.inspect}")
72 GRPC.logger.info("Answer: #{r.inspect}")
84 GRPC.logger.info("div(7/3), div(5/2), div(7/2): reqs=#{reqs.inspect}")
87 GRPC.logger.info("Answer: #{r.inspect}")
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils.py17 This module contains whatever inspect doesn't offer out of the box.
21 import inspect
65 elif inspect.isbuiltin(f):
87 return (inspect.isclass(cls) and
108 obj_file = inspect.getfile(obj)
121 """A variant of inspect.getsource that ignores the __wrapped__ property."""
124 lines, lnum = inspect.findsource(obj)
125 return ''.join(inspect.getblock(lines[lnum:]))
220 for super_class in inspect.getmro(owner_class):
238 has the same limitations that inspect.currentframe.
[all …]
/external/python/google-api-python-client/docs/dyn/
Ddialogflow_v3beta1.projects.locations.securitySettings.html119inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
143inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
192inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
228inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
270inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
295inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
Ddialogflow_v3.projects.locations.securitySettings.html119inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
143inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
192inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
228inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
270inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
295inspect template name. Use this template to define inspect base settings. The `DLP Inspect Templat…
/external/grpc-grpc/examples/ruby/route_guide/
Droute_guide_client.rb46 p "- found '#{resp.name}' at #{pt.inspect}"
48 p "- found nothing at #{pt.inspect}"
66 p "- found '#{r.name}' at #{r.location.inspect}"
89 p "- next point is #{pt.inspect}"
106 p "summary: #{resp.inspect}"
129 stub.route_chat(sleeping_enumerator.each_item) { |r| p "received #{r.inspect}" }
142 p "next item to send is #{item.inspect}"
/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/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:
71 function.__name__, inspect.signature(function, follow_wrapped=False)
74 docs = inspect.getdoc(function) or '(no docstring)'

12345678910>>...55