Home
last modified time | relevance | path

Searched refs:UserDict (Results 1 – 25 of 28) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_userdict.py15 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 …]
Dmapping_tests.py442 return collections.UserDict()
445 self.assertIsInstance(ud, collections.UserDict)
570 return collections.UserDict()
573 self.assertIsInstance(ud, collections.UserDict)
Dtest_funcattrs.py314 from collections import UserDict
315 d = UserDict({'known_attr': 7})
Dtest_genericalias.py7 defaultdict, deque, OrderedDict, Counter, UserDict, UserList
56 OrderedDict, Counter, UserDict, UserList,
Dtest_collections.py18 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()
Dtest_pprint.py1168 d = collections.UserDict()
1171 d = collections.UserDict(zip(words, itertools.count()))
Dtest_patma.py47 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})
Dtest_dict.py285 return collections.UserDict()
288 self.assertIsInstance(ud, collections.UserDict)
Dpickletester.py1177 self.assertIs(type(unpickled), collections.UserDict)
1178 self.assertEqual(unpickled, collections.UserDict({1: 2}))
2818 (collections.UserDict(), 'UserDict', 'IterableUserDict'),
Dtest_functools.py2194 from collections import UserDict
2197 class TracingDict(UserDict):
Dtest_configparser.py14 class SortedDict(collections.UserDict):
Dtest_builtin.py675 eval('[locals() for i in (2,3)]', g, collections.UserDict())
/third_party/mindspore/mindspore/ops/
D_register_for_op.py18 from collections import UserDict
22 class Registry(UserDict):
52 class PyFuncRegistry(UserDict):
/third_party/mindspore/mindspore/common/
D_register_for_tensor.py18 from collections import UserDict
22 class Registry(UserDict):
/third_party/node/tools/inspector_protocol/jinja2/
Dsandbox.py67 from UserDict import UserDict, DictMixin
69 _mutable_mapping_types += (UserDict, DictMixin)
/third_party/jinja2/
Dsandbox.py61 from UserDict import UserDict, DictMixin
64 _mutable_mapping_types += (UserDict, DictMixin)
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py61 from UserDict import UserDict, DictMixin
64 _mutable_mapping_types += (UserDict, DictMixin)
/third_party/python/Lib/idlelib/
DTODO.txt42 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__.py1084 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/
Dcollections.rst31 :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/
Dpprint.py538 _dispatch[_collections.UserDict.__repr__] = _pprint_user_dict
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst241 :class:`dict` (and :class:`collections.UserDict`) objects now support PEP
D3.5.1rc1.rst521 Constructor of collections.UserDict now accepts the self keyword argument.
D3.8.0b1.rst1574 ``collections.UserDict`` in order to correctly implement shallow copying of
/third_party/python/Doc/whatsnew/
D2.3.rst1592 * The :mod:`UserDict` module has a new :class:`DictMixin` class which defines
1602 >>> import UserDict
1603 >>> class SeqDict(UserDict.DictMixin):

12