/external/python/cpython3/Lib/test/ |
D | test_inspect.py | 6 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 …]
|
D | inspect_fodder.py | 4 import sys, inspect 15 fr = inspect.currentframe() 16 st = inspect.stack() 46 self.tr = inspect.trace() 78 currentframe = inspect.currentframe()
|
D | test_generators.py | 8 import inspect 323 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_RUNNING) 326 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_RUNNING) 337 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_CREATED) 341 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_SUSPENDED) 345 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_SUSPENDED) 349 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_CLOSED)
|
/external/python/cpython2/Lib/test/ |
D | test_inspect.py | 5 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 …]
|
D | inspect_fodder.py | 4 import sys, inspect 15 fr = inspect.currentframe() 16 st = inspect.stack() 46 self.tr = inspect.trace() 60 currentframe = inspect.currentframe()
|
/external/python/funcsigs/tests/ |
D | test_inspect.py | 11 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/python/cpython3/Lib/ |
D | pydoc.py | 62 import inspect 94 result = inspect.getdoc(object) or inspect.getcomments(object) 115 return not (inspect.ismodule(object) or inspect.isclass(object) or 116 inspect.isroutine(object) or inspect.isframe(object) or 117 inspect.istraceback(object) or inspect.iscode(object)) 141 return (inspect.isfunction(obj) or 142 inspect.ismethod(obj) or 143 inspect.isbuiltin(obj) or 144 inspect.ismethoddescriptor(obj)) 151 if inspect.ismethod(fn): [all …]
|
D | doctest.py | 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): [all …]
|
/external/libmtp/logs/ |
D | mtp-detect-lg-gr500.txt | 8 LIBMTP PANIC: could not inspect object property descriptions! 9 LIBMTP PANIC: could not inspect object property descriptions! 10 LIBMTP PANIC: could not inspect object property descriptions! 11 LIBMTP PANIC: could not inspect object property descriptions! 12 LIBMTP PANIC: could not inspect object property descriptions! 13 LIBMTP PANIC: could not inspect object property descriptions! 14 LIBMTP PANIC: could not inspect object property descriptions! 15 LIBMTP PANIC: could not inspect object property descriptions! 16 LIBMTP PANIC: could not inspect object property descriptions! 17 LIBMTP PANIC: could not inspect object property descriptions! [all …]
|
/external/python/cpython2/Lib/ |
D | pydoc.py | 56 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 …]
|
D | DocXMLRPCServer.py | 14 import inspect 77 if inspect.ismethod(object): 78 args, varargs, varkw, defaults = inspect.getargspec(object.im_func) 81 argspec = inspect.formatargspec ( 88 elif inspect.isfunction(object): 89 args, varargs, varkw, defaults = inspect.getargspec(object) 90 argspec = inspect.formatargspec(
|
D | doctest.py | 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: [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | traceable_stack_test.py | 24 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 124 expected_lineno_1 = inspect.getsourcelines(placeholder_1)[1] + 1 125 expected_lineno_2 = inspect.getsourcelines(placeholder_2)[1] + 1
|
/external/python/cpython3/Lib/asyncio/ |
D | coroutines.py | 5 import inspect 39 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen 110 if inspect.iscoroutinefunction(func): 115 if inspect.isgeneratorfunction(func): 121 if (base_futures.isfuture(res) or inspect.isgenerator(res) or 162 return (inspect.iscoroutinefunction(func) or 248 not inspect.isgeneratorfunction(coro.func)):
|
/external/protobuf/python/ |
D | stubout.py | 62 if (inspect.ismodule(obj) or 63 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))): 68 if not inspect.isclass(obj): 69 mro = list(inspect.getmro(obj.__class__)) 71 mro = list(inspect.getmro(obj))
|
/external/python/cpython3/Mac/PythonLauncher/ |
D | FileSettings.m | 75 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
|
D | PreferencesWindowController.m | 35 [inspect setState: [settings inspect]]; 80 - (BOOL) inspect { return [inspect state];}; method
|
/external/python/cpython2/Mac/PythonLauncher/ |
D | FileSettings.m | 75 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/chromium-trace/catapult/common/py_utils/py_utils/ |
D | discover.py | 7 import inspect 136 for _, obj in inspect.getmembers(module): 138 if not inspect.isclass(obj): 171 assert inspect.isclass(cls) 179 args, _, _, defaults = inspect.getargspec(cls.__init__)
|
D | class_util.py | 5 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/tensorflow/tensorflow/python/util/ |
D | tf_inspect_test.py | 23 import inspect 71 self.assertEqual(inspect.currentframe(), tf_inspect.currentframe()) 507 inspect.getmembers(TestDecoratedClass), 512 inspect.getmodule(TestDecoratedClass), 515 inspect.getmodule(test_decorated_function), 518 inspect.getmodule(test_undecorated_function), 536 expected = inspect.getsourcelines( 545 inspect.isbuiltin(TestDecoratedClass)) 548 inspect.isbuiltin(test_decorated_function)) 551 inspect.isbuiltin(test_undecorated_function)) [all …]
|
/external/python/cpython2/Python/ |
D | frozenmain.c | 19 int inspect = 0; in Py_FrozenMain() local 25 inspect = 1; in Py_FrozenMain() 61 if (inspect && isatty((int)fileno(stdin))) in Py_FrozenMain()
|
/external/python/setuptools/setuptools/command/ |
D | install.py | 2 import inspect 63 if not self._called_from_setup(inspect.currentframe()): 87 res = inspect.getouterframes(run_frame)[2] 89 info = inspect.getframeinfo(caller)
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | ev_epoll1_linux.cc | 857 grpc_pollset* inspect = neighborhood->active_root; in check_neighborhood_for_available_poller() local 858 if (inspect == nullptr) { in check_neighborhood_for_available_poller() 861 gpr_mu_lock(&inspect->mu); in check_neighborhood_for_available_poller() 862 GPR_ASSERT(!inspect->seen_inactive); in check_neighborhood_for_available_poller() 863 grpc_pollset_worker* inspect_worker = inspect->root_worker; in check_neighborhood_for_available_poller() 896 } while (!found_worker && inspect_worker != inspect->root_worker); in check_neighborhood_for_available_poller() 900 gpr_log(GPR_INFO, " .. mark pollset %p inactive", inspect); in check_neighborhood_for_available_poller() 902 inspect->seen_inactive = true; in check_neighborhood_for_available_poller() 903 if (inspect == neighborhood->active_root) { in check_neighborhood_for_available_poller() 905 inspect->next == inspect ? nullptr : inspect->next; in check_neighborhood_for_available_poller() [all …]
|
/external/libcxx/utils/libcxx/test/ |
D | tracing.py | 11 import inspect 37 for name, member in inspect.getmembers(obj): 38 if inspect.ismethod(member):
|