/third_party/python/Lib/test/ |
H A D | test_dynamicclassattribute.py | 40 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__['fo [all...] |
H A D | test_module.py | 22 # An uninitialized module has no __dict__ or __name__, 25 self.assertTrue(isinstance(foo.__dict__, dict)) 58 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None, 67 self.assertEqual(foo.__dict__, 77 self.assertEqual(foo.__dict__, 83 # Reinitialization should not replace the __dict__ 86 d = foo.__dict__ 91 self.assertEqual(foo.__dict__, 94 self.assertTrue(foo.__dict__ is d) 103 self.assertEqual(f().__dict__["ba [all...] |
H A D | test_type_annotations.py | 8 # the annotations dict is stored in type.__dict__. 12 self.assertFalse("__annotations__" in foo.__dict__) 14 self.assertTrue("__annotations__" in foo.__dict__) 16 self.assertEqual(foo.__dict__['__annotations__'], d) 22 self.assertFalse("__annotations__" in foo.__dict__) 25 self.assertTrue("__annotations__" in foo.__dict__) 27 self.assertEqual(foo.__dict__['__annotations__'], d) 50 self.assertTrue("__annotations__" in C.__dict__) 52 self.assertFalse("__annotations__" in C.__dict__)
|
H A D | test_funcattrs.py | 313 self.cannot_set_attr(self.b, '__dict__', None, TypeError) 316 self.cannot_set_attr(self.fi.a.__func__, '__dict__', d, TypeError) 320 self.b.__dict__ = d 322 self.assertIs(d, self.b.__dict__) 324 self.F.a.__dict__ = d 325 self.assertIs(d, self.fi.a.__func__.__dict__) 326 self.assertIs(d, self.fi.a.__dict__) 329 self.assertEqual(self.b.__dict__['known_attr'], 7) 336 del self.b.__dict__ 343 self.assertEqual(self.b.__dict__, {}) [all...] |
H A D | test_dataclasses.py | 268 b for b in builtins.__dict__.keys() 286 b for b in builtins.__dict__.keys() 457 self.assertNotIn('__eq__', C.__dict__) 458 self.assertNotIn('__lt__', C.__dict__) 459 self.assertNotIn('__le__', C.__dict__) 460 self.assertNotIn('__gt__', C.__dict__) 461 self.assertNotIn('__ge__', C.__dict__) 463 self.assertIn('__eq__', C.__dict__) 464 self.assertIn('__lt__', C.__dict__) 465 self.assertIn('__le__', C.__dict__) [all...] |
H A D | test_copy.py | 615 return (C, (), self.__dict__) 617 return self.__dict__ == other.__dict__ 629 return (C, (), self.__dict__) 631 self.__dict__.update(state) 633 return self.__dict__ == other.__dict__ 656 return (C, (), self.__dict__, iter(self)) 659 self.__dict__ == other.__dict__) [all...] |
H A D | test_descr.py | 82 while meth not in t.__dict__: 86 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 97 while meth not in t.__dict__: 101 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 111 while meth not in t.__dict__: 115 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 126 while meth not in t.__dict__: 130 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 145 while meth not in t.__dict__: 149 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[met 2558 __dict__ = property(getdict) global() variable in .test_dir.M2 [all...] |
H A D | _test_embed_set_config.py | 20 self.sys_copy = dict(sys.__dict__) 25 sys.__dict__.clear() 26 sys.__dict__.update(self.sys_copy)
|
H A D | test_threading_local.py | 174 self.assertEqual(obj.__dict__, {'x': 5}) 176 obj.__dict__ = {} 178 del obj.__dict__
|
/third_party/python/Lib/unittest/ |
H A D | mock.py | 138 # we explicitly don't copy func.__dict__ into this copy as it would 173 # *could* be broken by a class overriding __mro__ or __dict__ via 176 if base.__dict__.get('__call__') is not None: 340 self.__dict__[_the_name] = value 444 __dict__ = self.__dict__ 445 __dict__['_mock_parent'] = parent 446 __dict__['_mock_name'] = name 447 __dict__['_mock_new_name'] = _new_name 448 __dict__['_mock_new_paren [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_pickling.py | 30 self.assertEqual(src.__dict__, dst.__dict__) 46 # ctypes instances are identical when the instance __dict__ 48 self.assertEqual(y.__dict__, x.__dict__)
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_delegator.py | 22 self.assertIs(mydel.__dict__['bit_length'], int.bit_length) 31 self.assertNotIn('numerator', mydel.__dict__) 38 self.assertNotIn('bit_length', mydel.__dict__)
|
/third_party/python/Lib/lib2to3/pgen2/ |
H A D | grammar.py | 90 pickle.dump(self.__dict__, f, pickle.HIGHEST_PROTOCOL) 96 self.__dict__.update(d) 100 self.__dict__.update(pickle.loads(pkl))
|
/third_party/protobuf/python/ |
H A D | stubout.py | 60 probably be to manipulate obj.__dict__ instead of getattr() and 66 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))): 92 old_attribute = obj.__dict__.get(attr_name) 124 old_attribute = parent.__dict__.get(child_name)
|
/third_party/python/Lib/ |
H A D | copyreg.py | 88 dict = self.__dict__ 125 names = cls.__dict__.get("__slotnames__") 137 if "__slots__" in c.__dict__: 138 slots = c.__dict__['__slots__'] 144 if name in ("__dict__", "__weakref__"):
|
H A D | dataclasses.py | 37 # entry in the class's __dict__. I never check to see if an attribute 58 # | no | yes | <--- class has __init__ in __dict__? 70 # | no | yes | <--- class has __repr__ in __dict__? 84 # | no | yes | <--- class has __setattr__ or __delattr__ in __dict__? 98 # | no | yes | <--- class has __eq__ in __dict__? 113 # | no | yes | <--- class has any comparison method in __dict__? 162 # | no | yes | <--- class has __match_args__ in __dict__? 712 ns = sys.modules.get(cls.__module__).__dict__ 716 if module and module.__dict__.get(module_name) is a_module: 717 ns = sys.modules.get(a_type.__module__).__dict__ [all...] |
H A D | enum.py | 315 descriptor = base.__dict__.get(member_name) 568 classdict.update(enum_class.__dict__) 774 class' __dict__ in order to support `name` and `value` being both 775 properties for enum members (which live in the class' __dict__) and 833 member_map = cls.__dict__.get('_member_map_', {}) 899 module_globals = sys.modules[module].__dict__ 901 source = source.__dict__ 925 sys.modules[cls.__module__].__dict__.update(cls.__members__) 970 elif '__repr__' in base.__dict__: 972 return base.__dict__['__repr_ [all...] |
H A D | _threading_local.py | 19 >>> mydata.__dict__ 21 >>> mydata.__dict__.setdefault('widgets', []) 31 ... items = sorted(mydata.__dict__.items()) 49 Of course, values you get from a local object, including a __dict__ 60 ... self.__dict__.update(kw) 174 del thread.__dict__[key] 185 thread.__dict__[key] = wrlocal 200 object.__setattr__(self, '__dict__', dct) 205 __slots__ = '_local__impl', '__dict__' 226 if name == '__dict__' [all...] |
H A D | rlcompleter.py | 48 is __main__ (technically, __main__.__dict__). Namespaces should be 61 # specific namespace or to use __main__.__dict__. This will allow us 62 # to bind to __main__.__dict__ at completion time, not now. 77 self.namespace = __main__.__dict__ 131 for nspace in [self.namespace, builtins.__dict__]:
|
/third_party/PyYAML/tests/lib/ |
H A D | test_constructor.py | 34 return self.__class__, self.__dict__ == other.__class__, other.__dict__ 42 return representer.represent_mapping("!tag1", native.__dict__) 81 return representer.represent_mapping(cls.yaml_tag, native.__dict__) 93 return self.__class__, self.__dict__ == other.__class__, other.__dict__ 113 return self.__class__, self.__dict__ == other.__class__, other.__dict__
|
/third_party/python/Lib/email/ |
H A D | _policybase.py | 57 for name, value in self.__dict__.items() ] 68 for attr, value in self.__dict__.items(): 91 return self.clone(**other.__dict__) 102 for name, attr in cls.__dict__.items():
|
/third_party/mesa3d/src/gallium/tools/trace/ |
H A D | model.py | 54 for var in self.__dict__: 55 if var in args.__dict__: 56 self.__dict__[var] = args.__dict__[var]
|
/third_party/python/Lib/importlib/ |
H A D | util.py | 237 attrs_then = self.__spec__.loader_state['__dict__'] 238 attrs_now = self.__dict__ 257 self.__dict__.update(attrs_updated) 299 loader_state['__dict__'] = module.__dict__.copy()
|
/third_party/python/Lib/idlelib/ |
H A D | autocomplete.py | 183 namespace = {**__main__.__builtins__.__dict__, 184 **__main__.__dict__} 221 return eval(name, {**sys.modules, **__main__.__dict__})
|
/third_party/python/Lib/multiprocessing/dummy/ |
H A D | __init__.py | 84 self.__dict__.update(kwds) 86 items = list(self.__dict__.items())
|