Home
last modified time | relevance | path

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

12345678910

/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__, {})
Dpickletester.py137 return cmp(self.__dict__, other.__dict__)
493 self.assertDictEqual(obj.__dict__, objcopy.__dict__, msg=msg)
494 self.assertIsNot(obj.__dict__, objcopy.__dict__, msg=msg)
1211 self.assertEqual(x.__dict__, y.__dict__)
1221 self.assertEqual(x.__dict__, y.__dict__)
1233 self.assertEqual(x.__dict__, y.__dict__, detail)
1253 self.assertEqual(x.__dict__, y.__dict__, detail)
1275 self.assertEqual(x.__dict__, y.__dict__)
1285 self.assertEqual(x.__dict__, y.__dict__)
1360 self.assertEqual(x.__dict__, y.__dict__)
[all …]
Dtest_copy.py488 return (C, (), self.__dict__)
490 return cmp(self.__dict__, other.__dict__)
503 return (C, (), self.__dict__)
505 self.__dict__.update(state)
507 return cmp(self.__dict__, other.__dict__)
531 return (C, (), self.__dict__, iter(self))
534 cmp(self.__dict__, other.__dict__))
549 return (C, (), self.__dict__, None, self.iteritems())
552 cmp(self.__dict__, other.__dict__))
/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/
D_threading_local.py165 current_thread().__dict__[key] = dict
171 d = current_thread().__dict__.get(key)
174 current_thread().__dict__[key] = d
240 __dict__ = thread.__dict__
245 if key in __dict__:
247 del __dict__[key]
Dcopy_reg.py80 dict = self.__dict__
107 names = cls.__dict__.get("__slotnames__")
119 if "__slots__" in c.__dict__:
120 slots = c.__dict__['__slots__']
Dimputil.py116 if not top_module.__dict__.get('__ispkg__'):
133 importer = top_module.__dict__.get('__importer__')
172 assert globals is parent.__dict__
205 importer = module.__dict__.get('__importer__')
300 module.__dict__.update(values)
308 exec code in module.__dict__
340 list(package.__dict__.get('__all__', []))
619 print name, module.__dict__.get('__importer__', '-- no importer')
/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/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/python/cpython2/Lib/ctypes/test/
Dtest_pickling.py30 self.assertEqual(src.__dict__, dst.__dict__)
48 self.assertEqual(y.__dict__, x.__dict__)
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_delegator.py18 self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
27 self.assertNotIn('numerator', mydel.__dict__)
33 self.assertNotIn('bit_length', mydel.__dict__)
/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/protobuf/python/
Dstubout.py63 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))):
89 old_attribute = obj.__dict__.get(attr_name)
121 old_attribute = parent.__dict__.get(child_name)
/external/python/cpython2/Lib/xml/dom/
Dminidom.py280 node.__dict__["previousSibling"] = last
281 last.__dict__["nextSibling"] = node
283 node.__dict__["parentNode"] = self
347 d = self.__dict__
365 d = self.__dict__
368 d2 = self.childNodes[0].__dict__
385 d = self.__dict__
396 d = self.__dict__
558 if 'ownerElement' in n.__dict__:
559 n.__dict__['ownerElement'] = None
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dfirmware_constants.py24 if name in self.__dict__:
26 self.__dict__[name] = value
46 DEV.DEVICE_TYPE_LIST = list(DEV.__dict__.values())
157 MODE.GESTURE_PLAY_MODE = list(MODE.__dict__.values())
256 VAL.SEGMENT_LIST = list(VAL.__dict__.values())
/external/toolchain-utils/crosperf/
Dcrosperf.py51 for option_name in options.__dict__:
52 if (options.__dict__[option_name] is not None and
54 option_settings.SetField(option_name, options.__dict__[option_name])
/external/autotest/client/cros/camera/
Dcamera_utils.py21 self.__dict__.update(args)
26 ', '.join('%s=%s' % (k, v) for k, v in sorted(self.__dict__.items())
/external/selinux/gui/
DmappingsPage.py43 builtins.__dict__['_'] = str
46 __builtin__.__dict__['_'] = unicode
/external/python/cpython2/Lib/email/
D__init__.py81 self.__dict__.update(mod.__dict__)
/external/fonttools/Lib/fontTools/ttLib/tables/
DDefaultTable.py47 return self.__dict__ == other.__dict__
/external/autotest/server/
Dsite_host_attributes.py93 for key, value in self.__dict__.items():
123 return [key for key, value in self.__dict__.items() if value]
/external/python/cpython2/Tools/pybench/
DCommandLine.py500 synopsis = self.synopsis % self.__dict__
509 print string.strip(self.about % self.__dict__)
526 print self.header % self.__dict__
585 print string.strip(self.copyright % self.__dict__)
595 print string.strip(self.examples % self.__dict__)

12345678910