Home
last modified time | relevance | path

Searched refs:__dict__ (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/external/tensorflow/tensorflow/python/platform/
Dflags.py72 self.__dict__['__wrapped'] = flags_object
77 return self.__dict__['__wrapped'].__getattribute__(name)
80 wrapped = self.__dict__['__wrapped']
88 return self.__dict__['__wrapped'].__setattr__(name, value)
91 return self.__dict__['__wrapped'].__delattr__(name)
94 return self.__dict__['__wrapped'].__dir__()
97 return self.__dict__['__wrapped'].__getitem__(name)
100 return self.__dict__['__wrapped'].__setitem__(name, flag)
103 return self.__dict__['__wrapped'].__len__()
106 return self.__dict__['__wrapped'].__iter__()
[all …]
/external/python/cpython3/Lib/test/
Dtest_dynamicclassattribute.py40 spam = BaseClass.__dict__['spam']
62 spam = PropertyDocBase.__dict__['spam']
69 spam = BaseClass.__dict__['spam']
124 self.assertEqual(sub.__class__.__dict__['spam'].__doc__, "SubClass.getter")
130 self.assertEqual(base.__class__.__dict__['spam'].__doc__, "BaseClass.getter")
135 self.assertEqual(base.__class__.__dict__['spam'].__doc__, "spam spam spam")
136 self.assertEqual(sub.__class__.__dict__['spam'].__doc__, "spam spam spam")
143 self.assertEqual(newgettersub.__class__.__dict__['spam'].__doc__, "new docstring")
146 self.assertEqual(newgetter.__class__.__dict__['spam'].__doc__, "new docstring")
155 self.assertIs(C.__dict__['foo'].__isabstractmethod__, bool(val))
[all …]
Dtest_module.py24 self.assertTrue(foo.__dict__ is None)
57 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None,
66 self.assertEqual(foo.__dict__,
76 self.assertEqual(foo.__dict__,
85 d = foo.__dict__
90 self.assertEqual(foo.__dict__,
93 self.assertTrue(foo.__dict__ is d)
102 self.assertEqual(f().__dict__["bar"], 4)
115 exec(s, m.__dict__)
Dtest_dataclasses.py216 b for b in builtins.__dict__.keys()
234 b for b in builtins.__dict__.keys()
405 self.assertNotIn('__eq__', C.__dict__)
406 self.assertNotIn('__lt__', C.__dict__)
407 self.assertNotIn('__le__', C.__dict__)
408 self.assertNotIn('__gt__', C.__dict__)
409 self.assertNotIn('__ge__', C.__dict__)
411 self.assertIn('__eq__', C.__dict__)
412 self.assertIn('__lt__', C.__dict__)
413 self.assertIn('__le__', C.__dict__)
[all …]
/external/python/cpython2/Lib/test/
Dtest_module.py13 self.assertTrue(foo.__dict__ is None)
27 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None})
34 self.assertEqual(foo.__dict__,
42 self.assertEqual(foo.__dict__,
49 d = foo.__dict__
54 self.assertEqual(foo.__dict__,
56 self.assertTrue(foo.__dict__ is d)
66 self.assertEqual(f().__dict__["bar"], 4)
76 exec(s, m.__dict__)
D_mock_backport.py164 if base.__dict__.get('__call__') is not None:
299 self.__dict__[_the_name] = value
388 __dict__ = self.__dict__
389 __dict__['_mock_parent'] = parent
390 __dict__['_mock_name'] = name
391 __dict__['_mock_new_name'] = _new_name
392 __dict__['_mock_new_parent'] = _new_parent
402 __dict__['_mock_children'] = {}
403 __dict__['_mock_wraps'] = wraps
404 __dict__['_mock_delegate'] = None
[all …]
Dtest_funcattrs.py265 self.b.__dict__ = d
267 self.f.a.im_func.__dict__ = d
269 self.assertIs(d, self.b.__dict__)
272 self.assertIs(d, self.f.a.im_func.__dict__)
273 self.assertIs(d, self.f.a.__dict__)
274 self.assertIs(d, self.fi.a.im_func.__dict__)
275 self.assertIs(d, self.fi.a.__dict__)
278 self.assertEqual(self.b.__dict__['known_attr'], 7)
288 del self.b.__dict__
301 self.assertEqual(self.b.__dict__, {})
/external/tensorflow/tensorflow/examples/get_started/regression/
Dtest.py69 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset})
70 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)})
71 @test.mock.patch.dict(linear_regression_categorical.__dict__, {"STEPS": 1})
75 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset})
76 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)})
77 @test.mock.patch.dict(dnn_regression.__dict__, {"STEPS": 1})
81 @test.mock.patch.dict(data.__dict__, {"TextLineDataset": four_lines_dataset})
82 @test.mock.patch.dict(imports85.__dict__, {"_get_imports85": (lambda: None)})
83 @test.mock.patch.dict(custom_regression.__dict__, {"STEPS": 1})
/external/autotest/tko/parsers/test/
Dscenario_base.py59 for key, val in orig.__dict__.iteritems():
65 return self.__dict__ == other.__dict__
70 return self.__dict__ != other.__dict__
74 sd = self.__dict__
96 for key, val in orig.__dict__.iteritems():
98 setattr(self, key, dict(val.__dict__))
100 setattr(self, key, [dict(it.__dict__) for it in val])
107 return self.__dict__ == other.__dict__
112 return self.__dict__ != other.__dict__
116 sd = self.__dict__
/external/python/cpython2/Lib/plat-os2emx/
Dpwd.py123 self.__dict__['pw_name'] = name
124 self.__dict__['pw_passwd'] = passwd
125 self.__dict__['pw_uid'] = uid
126 self.__dict__['pw_gid'] = gid
127 self.__dict__['pw_gecos'] = gecos
128 self.__dict__['pw_dir'] = dir
129 self.__dict__['pw_shell'] = shell
130 self.__dict__['_record'] = (self.pw_name, self.pw_passwd,
Dgrp.py104 self.__dict__['gr_name'] = name
105 self.__dict__['gr_passwd'] = passwd
106 self.__dict__['gr_gid'] = gid
107 self.__dict__['gr_mem'] = mem
108 self.__dict__['_record'] = (self.gr_name, self.gr_passwd,
/external/python/cpython2/Lib/
D_threading_local.py161 current_thread().__dict__[key] = dict
167 d = current_thread().__dict__.get(key)
170 current_thread().__dict__[key] = d
236 __dict__ = thread.__dict__
241 if key in __dict__:
243 del __dict__[key]
/external/tensorflow/tensorflow/python/autograph/utils/
Dtesting.py32 mod_contents.update(gen_math_ops.__dict__)
33 mod_contents.update(math_ops.__dict__)
34 mod_contents.update(ops.__dict__)
35 mod_contents.update(mod.__dict__)
36 mod.__dict__.update(mod_contents)
/external/python/cpython2/Lib/plat-mac/
DPixMapWrapper.py71 self.__dict__['data'] = ''
83 self.__dict__['_pm'] = Qd.RawBitMap(self._header)
91 self.__dict__['_pm'] = None
102 self.__dict__['data'] = val
120 self.__dict__[attr] = val
140 return self.__dict__[attr]
145 if not self.__dict__['_pm']:
146 self.__dict__['_pm'] = Qd.RawBitMap(self._header)
147 return self.__dict__['_pm']
/external/scapy/scapy/
Dmain.py27 IGNORED = list(six.moves.builtins.__dict__)
118 globals_dict = six.moves.builtins.__dict__
121 if '__all__' in mod.__dict__:
123 for name in mod.__dict__['__all__']:
126 globals_dict[name] = mod.__dict__[name]
129 for name, sym in six.iteritems(mod.__dict__):
224 session = six.moves.builtins.__dict__["scapy_session"]
268 scapy_session = six.moves.builtins.__dict__["scapy_session"]
286 scapy_session = six.moves.builtins.__dict__["scapy_session"]
294 …k: v for k, v in six.iteritems(importlib.import_module(".all", "scapy").__dict__) if _validate_loc…
[all …]
Dconfig.py27 self.__dict__ = cnf.__dict__.copy()
32 keys = self.__class__.__dict__.copy()
33 keys.update(self.__dict__)
212 return six.iteritems(self.__dict__)
214 … return ((k,v) for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout)
217 return six.iterkeys(self.__dict__)
219 return (k for k in six.iterkeys(self.__dict__) if t0-self._timetable[k] < self.timeout)
221 return six.iterkeys(self.__dict__)
224 return six.itervalues(self.__dict__)
226 return (v for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout)
[all …]
Ddadict.py36 return val in self.__dict__
42 return (value for key, value in six.iteritems(self.__dict__)
45 for k in self.__dict__:
49 return "<%s/ %s>" % (self._name," ".join(x for x in self.__dict__ if x and x[0]!="_"))
97 return (x for x in self.__dict__ if x and x[0] != "_")
99 return len(self.__dict__)
Dansmachine.py61 mode = self.__dict__.get("mode",0)
63 self.__dict__[attr] = val
88 omode = self.__dict__.get("mode",0)
89 self.__dict__["mode"] = mode
91 self.__dict__["mode"] = omode
/external/tensorflow/tensorflow/python/util/
Dtf_export.py117 if api_names_attr not in undecorated_symbol.__dict__:
120 deprecated_api_names = undecorated_symbol.__dict__.get(
175 if tensorflow_api_attr_v1 in symbol.__dict__:
177 if estimator_api_attr_v1 in symbol.__dict__:
179 if keras_api_attr_v1 in symbol.__dict__:
201 if tensorflow_api_attr in symbol.__dict__:
203 if estimator_api_attr in symbol.__dict__:
205 if keras_api_attr in symbol.__dict__:
342 if api_names_attr in func.__dict__:
/external/python/cpython2/Lib/ctypes/test/
Dtest_pickling.py30 self.assertEqual(src.__dict__, dst.__dict__)
48 self.assertEqual(y.__dict__, x.__dict__)
/external/python/cpython3/Lib/ctypes/test/
Dtest_pickling.py30 self.assertEqual(src.__dict__, dst.__dict__)
48 self.assertEqual(y.__dict__, x.__dict__)
/external/python/cpython3/Lib/unittest/
Dmock.py145 if base.__dict__.get('__call__') is not None:
294 self.__dict__[_the_name] = value
391 __dict__ = self.__dict__
392 __dict__['_mock_parent'] = parent
393 __dict__['_mock_name'] = name
394 __dict__['_mock_new_name'] = _new_name
395 __dict__['_mock_new_parent'] = _new_parent
396 __dict__['_mock_sealed'] = False
406 __dict__['_mock_children'] = {}
407 __dict__['_mock_wraps'] = wraps
[all …]
/external/python/mock/mock/
Dmock.py265 if base.__dict__.get('__call__') is not None:
270 if klass.__dict__.get('__call__') is not None:
416 self.__dict__[_the_name] = value
505 __dict__ = self.__dict__
506 __dict__['_mock_parent'] = parent
507 __dict__['_mock_name'] = name
508 __dict__['_mock_new_name'] = _new_name
509 __dict__['_mock_new_parent'] = _new_parent
519 __dict__['_mock_children'] = {}
520 __dict__['_mock_wraps'] = wraps
[all …]
/external/pdfium/third_party/pymock/
Dmock.py252 if klass.__dict__.get('__call__') is not None:
403 self.__dict__[_the_name] = value
485 __dict__ = self.__dict__
486 __dict__['_mock_parent'] = parent
487 __dict__['_mock_name'] = name
488 __dict__['_mock_new_name'] = _new_name
489 __dict__['_mock_new_parent'] = _new_parent
497 __dict__['_mock_children'] = {}
498 __dict__['_mock_wraps'] = wraps
499 __dict__['_mock_delegate'] = None
[all …]
/external/tensorflow/tensorflow/python/autograph/core/
Dconverter_testing.py74 fake_ag.__dict__.update(operators.__dict__)
75 fake_ag.__dict__.update(special_functions.__dict__)
84 result.__dict__[k] = v

12345678910>>...21