Searched refs:__dict__ (Results 1 – 25 of 254) sorted by relevance
1234567891011
/third_party/python/Lib/test/ |
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_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_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_threading_local.py | 170 self.assertEqual(obj.__dict__, {'x': 5}) 172 obj.__dict__ = {} 174 del obj.__dict__
|
/third_party/mindspore/mindspore/nn/ |
D | cell.py | 125 return base, self.__dict__ 130 self.__dict__ = dict_ 272 if '_params' in self.__dict__: 273 params = self.__dict__['_params'] 278 if '_cells' in self.__dict__: 279 cells = self.__dict__['_cells'] 282 if '_tensor_list' in self.__dict__: 283 tensor_list = self.__dict__['_tensor_list'] 286 if '_params_list' in self.__dict__: 287 params_list = self.__dict__['_params_list'] [all …]
|
/third_party/mindspore/mindspore/dataset/transforms/ |
D | py_transforms.py | 49 if "transforms" in self.__dict__.keys(): 55 self.__dict__.pop("transforms") 56 if "output_type" in self.__dict__.keys(): 58 self.__dict__["output_type"]).name 59 self.__dict__.pop("output_type") 60 json_obj["tensor_op_params"] = self.__dict__ 74 new_op.__dict__ = json_obj
|
/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/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/boost/libs/python/doc/reference/ |
D | pickle.qbk | 83 …__dict__` is not included in the result of `__getstate__`. This is not generally recommended, but … 86 …object's `__dict__` is included in the result of `__getstate__`. This requires a little more code … 92 [*`__getstate__` is defined and the instance's `__dict__` is not empty.] 95 * his class is used in Python as a base class. Most likely the `__dict__` of instances of the deriv… 96 * the user adds items to the instance's `__dict__` directly. Again, the `__dict__` of the instance … 98 …ety guard is provided. If `__getstate__` is defined and the instance's `__dict__` is not empty, `B… 104 …t the `__getstate__` and `__setstate__` methods manage the instances's `__dict__` correctly. Note … 132 * If `__getstate__` is required, include the instance's `__dict__` in the Python object that is ret…
|
/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/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/ |
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 | _threading_local.py | 174 del thread.__dict__[key] 185 thread.__dict__[key] = wrlocal
|
/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/boost/tools/build/src/build/ |
D | project.py | 660 callable = b2.util.path.__dict__[rule_name] 885 self.__dict__[attribute] = specification 910 existing = self.__dict__.get("usage-requirements") 915 self.__dict__["usage-requirements"] = new 919 self.__dict__["default-build"] = property_set.create(specification) 925 self.__dict__["source-location"] = source_location 928 self.__dict__["build-dir"] = os.path.join(self.location, specification[0]) 935 self.__dict__["id"] = id 944 self.__dict__[attribute] = specification 948 return self.__dict__[attribute] [all …]
|
/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/mindspore/mindspore/ops/ |
D | primitive.py | 111 self.__dict__[name] = value 130 if name in self.__dict__ and name in self.attrs: 131 del self.__dict__[name] 250 return self.__dict__ 253 self.__dict__.update(d)
|
/third_party/mindspore/tests/mindspore_test_framework/utils/ |
D | keyword.py | 23 if name in self.__dict__: 25 self.__dict__[name] = value
|
/third_party/python/Lib/idlelib/ |
D | autocomplete.py | 183 namespace = {**__main__.__builtins__.__dict__, 184 **__main__.__dict__} 221 return eval(name, {**sys.modules, **__main__.__dict__})
|
1234567891011