Searched refs:__dict__ (Results 1 – 25 of 240) sorted by relevance
12345678910
/third_party/python/Lib/test/ |
D | test_module.py | 25 self.assertTrue(foo.__dict__ is None) 58 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None, 67 self.assertEqual(foo.__dict__, 77 self.assertEqual(foo.__dict__, 86 d = foo.__dict__ 91 self.assertEqual(foo.__dict__, 94 self.assertTrue(foo.__dict__ is d) 103 self.assertEqual(f().__dict__["bar"], 4) 115 exec(s, m.__dict__) 296 self.assertFalse("__annotations__" in foo.__dict__) [all …]
|
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__['foo'].__isabstractmethod__, bool(val)) [all …]
|
D | test_type_annotations.py | 11 self.assertFalse("__annotations__" in foo.__dict__) 13 self.assertTrue("__annotations__" in foo.__dict__) 15 self.assertEqual(foo.__dict__['__annotations__'], d) 21 self.assertFalse("__annotations__" in foo.__dict__) 24 self.assertTrue("__annotations__" in foo.__dict__) 26 self.assertEqual(foo.__dict__['__annotations__'], d) 49 self.assertTrue("__annotations__" in C.__dict__) 51 self.assertFalse("__annotations__" in C.__dict__)
|
D | test_dataclasses.py | 239 b for b in builtins.__dict__.keys() 257 b for b in builtins.__dict__.keys() 428 self.assertNotIn('__eq__', C.__dict__) 429 self.assertNotIn('__lt__', C.__dict__) 430 self.assertNotIn('__le__', C.__dict__) 431 self.assertNotIn('__gt__', C.__dict__) 432 self.assertNotIn('__ge__', C.__dict__) 434 self.assertIn('__eq__', C.__dict__) 435 self.assertIn('__lt__', C.__dict__) 436 self.assertIn('__le__', C.__dict__) [all …]
|
D | test_funcattrs.py | 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__, {})
|
D | test_descr.py | 81 while meth not in t.__dict__: 85 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 96 while meth not in t.__dict__: 100 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 110 while meth not in t.__dict__: 114 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 125 while meth not in t.__dict__: 129 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) 144 while meth not in t.__dict__: 148 self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth]) [all …]
|
D | test_copy.py | 609 return (C, (), self.__dict__) 611 return self.__dict__ == other.__dict__ 623 return (C, (), self.__dict__) 625 self.__dict__.update(state) 627 return self.__dict__ == other.__dict__ 650 return (C, (), self.__dict__, iter(self)) 653 self.__dict__ == other.__dict__) 667 return (C, (), self.__dict__, None, self.items()) 670 self.__dict__ == other.__dict__)
|
D | test_dict.py | 109 mappingproxy = type(type.__dict__) 991 dicts.append(a.__dict__) 1088 self.assertTrue(_testcapi.dict_hassplittable(a.__dict__)) 1091 a.__dict__.pop('a') 1092 self.assertFalse(_testcapi.dict_hassplittable(a.__dict__)) 1096 self.assertFalse(_testcapi.dict_hassplittable(a.__dict__)) 1101 self.assertTrue(_testcapi.dict_hassplittable(a.__dict__)) 1102 a.__dict__.popitem() 1103 self.assertFalse(_testcapi.dict_hassplittable(a.__dict__)) 1105 self.assertFalse(_testcapi.dict_hassplittable(a.__dict__)) [all …]
|
D | test_threading_local.py | 170 self.assertEqual(obj.__dict__, {'x': 5}) 172 obj.__dict__ = {} 174 del obj.__dict__
|
D | _test_embed_set_config.py | 20 self.sys_copy = dict(sys.__dict__) 24 sys.__dict__.clear() 25 sys.__dict__.update(self.sys_copy)
|
/third_party/python/Lib/unittest/ |
D | mock.py | 168 if base.__dict__.get('__call__') is not None: 332 self.__dict__[_the_name] = value 428 __dict__ = self.__dict__ 429 __dict__['_mock_parent'] = parent 430 __dict__['_mock_name'] = name 431 __dict__['_mock_new_name'] = _new_name 432 __dict__['_mock_new_parent'] = _new_parent 433 __dict__['_mock_sealed'] = False 443 __dict__['_mock_children'] = {} 444 __dict__['_mock_wraps'] = wraps [all …]
|
/third_party/python/Lib/ctypes/test/ |
D | test_pickling.py | 30 self.assertEqual(src.__dict__, dst.__dict__) 48 self.assertEqual(y.__dict__, x.__dict__)
|
/third_party/PyYAML/tests/lib/ |
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/idlelib/idle_test/ |
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/ |
D | copyreg.py | 88 dict = self.__dict__ 121 names = cls.__dict__.get("__slotnames__") 133 if "__slots__" in c.__dict__: 134 slots = c.__dict__['__slots__']
|
D | dataclasses.py | 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__ 828 if name in cls.__dict__: 891 globals = sys.modules[cls.__module__].__dict__ 932 cls_annotations = cls.__dict__.get('__annotations__', {}) 978 for name, value in cls.__dict__.items(): 1003 class_hash = cls.__dict__.get('__hash__', MISSING) 1005 (class_hash is None and '__eq__' in cls.__dict__)) 1128 if '__slots__' in cls.__dict__: [all …]
|
D | typing.py | 968 if '__origin__' in self.__dict__ and not _is_dunder(attr): 1331 if '__orig_bases__' in cls.__dict__: 1337 if '__orig_bases__' in cls.__dict__: 1397 for attr in list(base.__dict__.keys()) + list(annotations.keys()): 1426 init = base.__dict__.get('__init__', _no_init_or_replace_init) 1531 if not cls.__dict__.get('_is_protocol', False): 1536 if not cls.__dict__.get('_is_protocol', False): 1558 if attr in base.__dict__: 1559 if base.__dict__[attr] is None: 1573 if '__subclasshook__' not in cls.__dict__: [all …]
|
D | enum.py | 224 for k, v in c.__dict__.items() 245 if not any(m in member_type.__dict__ for m in methods): 260 elif any(m in base.__dict__ for m in methods): 264 elif '__new__' in base.__dict__: 478 member_map = cls.__dict__.get('_member_map_', {}) 601 elif '__new__' in base.__dict__: 759 for m in cls.__dict__ 761 ] + [m for m in self.__dict__ if m[0] != '_']
|
D | _threading_local.py | 174 del thread.__dict__[key] 185 thread.__dict__[key] = wrlocal
|
/third_party/python/Lib/lib2to3/pgen2/ |
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/ |
D | stubout.py | 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/email/ |
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/ |
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/ |
D | util.py | 238 attrs_now = self.__dict__ 257 self.__dict__.update(attrs_updated) 299 loader_state['__dict__'] = module.__dict__.copy()
|
/third_party/python/Lib/idlelib/ |
D | autocomplete.py | 183 namespace = {**__main__.__builtins__.__dict__, 184 **__main__.__dict__} 221 return eval(name, {**sys.modules, **__main__.__dict__})
|
12345678910