Home
last modified time | relevance | path

Searched refs:getattr (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/third_party/protobuf/python/google/protobuf/internal/
Dkeywords_test.py49 message = getattr(more_messages_pb2, 'class')()
56 message = getattr(more_messages_pb2, 'class')()
63 message = getattr(more_messages_pb2, 'class')()
66 self.assertEqual(getattr(message, 'if'), 123)
67 self.assertEqual(getattr(message, 'as'), 1)
70 class_ = getattr(more_messages_pb2, 'class')
76 message.enum_field = getattr(more_messages_pb2, 'else')
79 message.nested_enum_field = getattr(class_, 'True')
83 message = getattr(more_messages_pb2, 'class')()
85 extension1 = getattr(more_messages_pb2, 'continue')
[all …]
/third_party/python/Lib/unittest/
Dsuite.py12 func = getattr(parent, attr, lambda: None)
104 if getattr(result, '_testRunEntered', False) is False:
117 if (getattr(test.__class__, '_classSetupFailed', False) or
118 getattr(result, '_moduleSetUpFailed', False)):
143 previousClass = getattr(result, '_previousTestClass', None)
149 if getattr(currentClass, "__unittest_skip__", False):
160 setUpClass = getattr(currentClass, 'setUpClass', None)
161 doClassCleanups = getattr(currentClass, 'doClassCleanups', None)
190 previousClass = getattr(result, '_previousTestClass', None)
210 setUpModule = getattr(module, 'setUpModule', None)
[all …]
/third_party/boost/libs/python/src/object/
Dpickle_support.cpp23 if (!getattr(instance_obj, "__safe_for_unpickling__", none)) in instance_reduce()
25 str type_name(getattr(instance_class, "__name__")); in instance_reduce()
26 str module_name(getattr(instance_class, "__module__", object(""))); in instance_reduce()
39 object getinitargs = getattr(instance_obj, "__getinitargs__", none); in instance_reduce()
45 object getstate = getattr(instance_obj, "__getstate__", none); in instance_reduce()
46 object instance_dict = getattr(instance_obj, "__dict__", none); in instance_reduce()
53 object getstate_manages_dict = getattr( in instance_reduce()
/third_party/python/Lib/test/
Dtest_unicode_identifiers.py11 self.assertEqual(getattr(T, "\xe4"), 1)
12 self.assertEqual(getattr(T, "\u03bc"), 2)
13 self.assertEqual(getattr(T, '\u87d2'), 3)
14 self.assertEqual(getattr(T, 'x\U000E0100'), 4)
Dtest_stat.py101 fmt = getattr(self.statmod, "S_IF" + name.lstrip("F"))
106 func = getattr(self.statmod, funcname, None)
214 modvalue = getattr(self.statmod, key)
217 modvalue = getattr(self.statmod, key)
220 modvalue = getattr(self.statmod, key)
223 modvalue = getattr(self.statmod, key)
226 func = getattr(self.statmod, key)
235 modvalue = getattr(self.statmod, key)
Dtime_hashlib.py54 print("testing speed of _hashlib.%s" % sys.argv[2], getattr(_hashlib, sys.argv[2]))
59 elif hasattr(hashlib, hName) and hasattr(getattr(hashlib, hName), '__call__'):
60 creatorFunc = getattr(hashlib, hName)
61 print("testing speed of hashlib."+hName, getattr(hashlib, hName))
/third_party/boost/boost/python/
Dobject_protocol_core.hpp18 BOOST_PYTHON_DECL object getattr(object const& target, object const& key);
19 BOOST_PYTHON_DECL object getattr(object const& target, object const& key, object const& default_);
25 BOOST_PYTHON_DECL object getattr(object const& target, char const* key);
26 BOOST_PYTHON_DECL object getattr(object const& target, char const* key, object const& default_);
39 using api::getattr;
Dobject_protocol.hpp27 object getattr(Target const& target, Key const& key BOOST_PYTHON_NO_ARRAY_ARG(Key)) in getattr() function
29 return getattr(object(target), object(key)); in getattr()
33 object getattr(Target const& target, Key const& key, Default const& default_ BOOST_PYTHON_NO_ARRAY_… in getattr() function
35 return getattr(object(target), object(key), object(default_)); in getattr()
/third_party/boost/libs/python/test/numpy/
Ddtype.py22 s = getattr(numpy, "int%d" % bits)
23 u = getattr(numpy, "uint%d" % bits)
24 fs = getattr(dtype_ext, "accept_int%d" % bits)
25 fu = getattr(dtype_ext, "accept_uint%d" % bits)
36 t = getattr(numpy, name)
37 ft = getattr(dtype_ext, "accept_%s" % name)
/third_party/python/Lib/asyncio/
Dcoroutines.py44 self.__name__ = getattr(gen, '__name__', None)
45 self.__qualname__ = getattr(gen, '__qualname__', None)
91 gen = getattr(self, 'gen', None)
92 frame = getattr(gen, 'gi_frame', None)
95 tb = getattr(self, '_source_traceback', ())
152 w.__name__ = getattr(func, '__name__', None)
153 w.__qualname__ = getattr(func, '__qualname__', None)
167 getattr(func, '_is_coroutine', None) is _is_coroutine)
/third_party/python/Lib/
D_py_abc.py40 if getattr(value, "__isabstractmethod__", False)}
42 for name in getattr(base, "__abstractmethods__", set()):
43 value = getattr(cls, name, None)
44 if getattr(value, "__isabstractmethod__", False):
78 value = getattr(cls, name)
132 if cls in getattr(subclass, '__mro__', ()):
Dabc.py172 for name in getattr(scls, '__abstractmethods__', ()):
173 value = getattr(cls, name, None)
174 if getattr(value, "__isabstractmethod__", False):
178 if getattr(value, "__isabstractmethod__", False):
Dcopy.py82 copier = getattr(cls, "__copy__", None)
90 reductor = getattr(x, "__reduce_ex__", None)
94 reductor = getattr(x, "__reduce__", None)
114 t = getattr(types, "CodeType", None)
151 copier = getattr(x, "__deepcopy__", None)
159 reductor = getattr(x, "__reduce_ex__", None)
163 reductor = getattr(x, "__reduce__", None)
Dreprlib.py27 wrapper.__module__ = getattr(user_function, '__module__')
28 wrapper.__doc__ = getattr(user_function, '__doc__')
29 wrapper.__name__ = getattr(user_function, '__name__')
30 wrapper.__qualname__ = getattr(user_function, '__qualname__')
31 wrapper.__annotations__ = getattr(user_function, '__annotations__', {})
60 return getattr(self, 'repr_' + typename)(x, level)
Dcodecs.py405 getattr=getattr):
409 return getattr(self.stream, name)
654 getattr=getattr):
658 return getattr(self.stream, name)
739 getattr=getattr):
743 return getattr(self.stream, name)
857 getattr=getattr):
861 return getattr(self.stream, name)
Dinspect.py113 obj_dict = getattr(obj, '__dict__', None)
122 module_name = getattr(obj, '__module__', None)
126 obj_globals = getattr(module, '__dict__', None)
131 ann = getattr(obj, '__annotations__', None)
132 obj_globals = getattr(obj, '__dict__')
139 ann = getattr(obj, '__annotations__', None)
140 obj_globals = getattr(obj, '__globals__', None)
435 if getattr(value, "__isabstractmethod__", False):
438 for name in getattr(base, "__abstractmethods__", ()):
439 value = getattr(object, name, None)
[all …]
/third_party/python/Lib/multiprocessing/
Dspawn.py33 WINEXE = getattr(sys, 'frozen', False)
82 if getattr(sys, 'frozen', False):
133 if getattr(process.current_process(), '_inheriting', False):
183 main_mod_name = getattr(main_module.__spec__, "name", None)
187 main_path = getattr(main_module, '__file__', None)
250 if getattr(current_main.__spec__, "name", None) == mod_name:
279 if getattr(current_main, '__file__', None) == main_path:
/third_party/selinux/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf89 getattr
109 getattr
132 getattr
145 getattr
261 getattr
362 getattr
368 getattr
382 getattr
404 getattr
416 getattr
[all …]
/third_party/mindspore/mindspore/offline_debug/
Dconvert_async.py211 tensor = getattr(op_data, tensor_type)[index]
231 … ret_mp = getattr(convert_obj.multi_process, '_do_multi_process')(multi_process_file_list)
233 ret_mp = getattr(convert_obj, '_do_multi_process')(multi_process_file_list)
254 max_file_size = getattr(convert_obj.multi_process, 'get_max_file_size')()
256 max_file_size = getattr(convert_obj, '_get_max_file_size')()
273 ret_bf, _ = getattr(convert_obj, '_convert_format_for_one_file')(big_file)
275 ret_bf, _ = getattr(convert_obj, 'convert_format_for_one_file')(big_file)
277 getattr(convert_obj.multi_process, '_handle_result_callback')([ret_bf, big_file])
279 getattr(convert_obj, '_handle_result_callback')([ret_bf, big_file])
/third_party/python/Tools/peg_generator/pegen/
Dast_dump.py26 value = getattr(node, name)
30 if value is None and getattr(cls, name, ...) is None:
42 value = getattr(node, name)
45 if value is None and getattr(cls, name, ...) is None:
/third_party/python/Lib/distutils/
Dcmd.py97 myval = getattr(self, "_" + attr)
99 return getattr(self.distribution, attr)
161 value = getattr(self, option)
208 val = getattr(self, option)
229 val = getattr(self, option)
289 if getattr(self, dst_option) is None:
290 setattr(self, dst_option, getattr(src_cmd_obj, src_option))
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py33 self.assertEqual(getattr(module, attr), value)
42 attr_value = getattr(module, attr)
55 attr_value = getattr(module, attr)
104 self.assertEqual(getattr(module, attr), value)
119 attr_value = getattr(module, attr)
137 attr_value = getattr(module, attr)
210 method = getattr(self.machinery.FrozenImporter, meth_name)
/third_party/node/tools/gyp/pylib/gyp/
D__init__.py116 if getattr(generator, "CalculateVariables", None):
121 if getattr(generator, "CalculateGeneratorInputInfo", None):
128 "non_configuration_keys": getattr(
131 "path_sections": getattr(generator, "generator_additional_path_sections", []),
132 "extra_sources_for_rules": getattr(
135 "generator_supports_multiple_toolsets": getattr(
138 "generator_wants_static_library_dependencies_adjusted": getattr(
141 "generator_wants_sorted_dependencies": getattr(
144 "generator_filelist_paths": getattr(
248 value = getattr(options, name)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
D__init__.py106 if getattr(generator, 'CalculateVariables', None):
111 if getattr(generator, 'CalculateGeneratorInputInfo', None):
119 getattr(generator, 'generator_additional_non_configuration_keys', []),
121 getattr(generator, 'generator_additional_path_sections', []),
123 getattr(generator, 'generator_extra_sources_for_rules', []),
125 getattr(generator, 'generator_supports_multiple_toolsets', False),
127 getattr(generator,
130 getattr(generator, 'generator_wants_sorted_dependencies', False),
132 getattr(generator, 'generator_filelist_paths', None),
221 value = getattr(options, name)
/third_party/libevdev/libevdev/
Dmake-event-names.py73 for val, name in list(getattr(bits, prefix).items()):
76 for val, name in list(getattr(bits, "btn").items()):
121 names = list(getattr(bits, prefix).items())
205 b = getattr(bits, attrname)

12345678910>>...27