Searched refs:UserDict (Results 1 – 25 of 28) sorted by relevance
12
/third_party/python/Lib/test/ |
D | test_userdict.py | 15 type2test = collections.UserDict 19 u = collections.UserDict() 20 u0 = collections.UserDict(d0) 21 u1 = collections.UserDict(d1) 22 u2 = collections.UserDict(d2) 24 uu = collections.UserDict(u) 25 uu0 = collections.UserDict(u0) 26 uu1 = collections.UserDict(u1) 27 uu2 = collections.UserDict(u2) 30 self.assertEqual(collections.UserDict(one=1, two=2), d2) [all …]
|
D | mapping_tests.py | 442 return collections.UserDict() 445 self.assertIsInstance(ud, collections.UserDict) 570 return collections.UserDict() 573 self.assertIsInstance(ud, collections.UserDict)
|
D | test_funcattrs.py | 314 from collections import UserDict 315 d = UserDict({'known_attr': 7})
|
D | test_genericalias.py | 7 defaultdict, deque, OrderedDict, Counter, UserDict, UserList 56 OrderedDict, Counter, UserDict, UserList,
|
D | test_collections.py | 18 from collections import UserDict, UserString, UserList 62 self._superset_test(UserDict, dict) 70 obj = UserDict() 200 class DictWithGetItem(UserDict): 203 UserDict.__init__(self, *args, **kwds) 206 UserDict.__getitem__(self, item) 1842 mymap = UserDict() 1849 mymap = UserDict() 1857 mymap = UserDict()
|
D | test_pprint.py | 1168 d = collections.UserDict() 1171 d = collections.UserDict(zip(words, itertools.count()))
|
D | test_patma.py | 47 class M1(collections.UserDict, collections.abc.Sequence): 49 class M2(C, collections.UserDict, collections.abc.Sequence): 51 class M3(collections.UserDict, C, list): 2534 x = collections.UserDict({0: 1, 2: 3}) 2542 x = collections.UserDict({0: 1, 2: 3})
|
D | test_dict.py | 285 return collections.UserDict() 288 self.assertIsInstance(ud, collections.UserDict)
|
D | pickletester.py | 1177 self.assertIs(type(unpickled), collections.UserDict) 1178 self.assertEqual(unpickled, collections.UserDict({1: 2})) 2818 (collections.UserDict(), 'UserDict', 'IterableUserDict'),
|
D | test_functools.py | 2194 from collections import UserDict 2197 class TracingDict(UserDict):
|
D | test_configparser.py | 14 class SortedDict(collections.UserDict):
|
D | test_builtin.py | 675 eval('[locals() for i in (2,3)]', g, collections.UserDict())
|
/third_party/mindspore/mindspore/ops/ |
D | _register_for_op.py | 18 from collections import UserDict 22 class Registry(UserDict): 52 class PyFuncRegistry(UserDict):
|
/third_party/mindspore/mindspore/common/ |
D | _register_for_tensor.py | 18 from collections import UserDict 22 class Registry(UserDict):
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | sandbox.py | 67 from UserDict import UserDict, DictMixin 69 _mutable_mapping_types += (UserDict, DictMixin)
|
/third_party/jinja2/ |
D | sandbox.py | 61 from UserDict import UserDict, DictMixin 64 _mutable_mapping_types += (UserDict, DictMixin)
|
/third_party/skia/third_party/externals/jinja2/ |
D | sandbox.py | 61 from UserDict import UserDict, DictMixin 64 _mutable_mapping_types += (UserDict, DictMixin)
|
/third_party/python/Lib/idlelib/ |
D | TODO.txt | 42 In other words, select "UserDict.UserDict", hit some magic key and 43 it loads up UserDict.py and finds the first def or class for UserDict.
|
/third_party/python/Lib/collections/ |
D | __init__.py | 1084 class UserDict(_collections_abc.MutableMapping): class 1122 if isinstance(other, UserDict): 1129 if isinstance(other, UserDict): 1136 if isinstance(other, UserDict): 1150 if self.__class__ is UserDict: 1151 return UserDict(self.data.copy())
|
/third_party/python/Doc/library/ |
D | collections.rst | 31 :class:`UserDict` wrapper around dictionary objects for easier dict subclassing 1272 :class:`UserDict` objects 1275 The class, :class:`UserDict` acts as a wrapper around dictionary objects. 1281 .. class:: UserDict([initialdata]) 1285 :class:`UserDict` instances. If *initialdata* is provided, :attr:`data` is 1290 :class:`UserDict` instances provide the following attribute: 1294 A real dictionary used to store the contents of the :class:`UserDict`
|
/third_party/python/Lib/ |
D | pprint.py | 538 _dispatch[_collections.UserDict.__repr__] = _pprint_user_dict
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 241 :class:`dict` (and :class:`collections.UserDict`) objects now support PEP
|
D | 3.5.1rc1.rst | 521 Constructor of collections.UserDict now accepts the self keyword argument.
|
D | 3.8.0b1.rst | 1574 ``collections.UserDict`` in order to correctly implement shallow copying of
|
/third_party/python/Doc/whatsnew/ |
D | 2.3.rst | 1592 * The :mod:`UserDict` module has a new :class:`DictMixin` class which defines 1602 >>> import UserDict 1603 >>> class SeqDict(UserDict.DictMixin):
|
12