Home
last modified time | relevance | path

Searched refs:UserDict (Results 1 - 17 of 17) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_userdict.py1 # Check every path through every method of UserDict
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(u
[all...]
H A Dmapping_tests.py1 # tests common to dict and UserDict
194 # FIXME: Doesn't work with UserDict
442 return collections.UserDict()
445 self.assertIsInstance(ud, collections.UserDict)
570 return collections.UserDict()
573 self.assertIsInstance(ud, collections.UserDict)
H A Dtest_funcattrs.py314 from collections import UserDict namespace
315 d = UserDict({'known_attr': 7})
H A Dtest_collections.py18 from collections import UserDict, UserString, UserList namespace
62 self._superset_test(UserDict, dict)
70 obj = UserDict()
200 class DictWithGetItem(UserDict):
203 UserDict.__init__(self, *args, **kwds)
206 UserDict.__getitem__(self, item)
1861 mymap = UserDict()
1870 mymap = UserDict()
1878 mymap = UserDict()
H A Dtest_genericalias.py7 defaultdict, deque, OrderedDict, Counter, UserDict, UserList
96 OrderedDict, Counter, UserDict, UserList,
H A Dtest_pprint.py1176 d = collections.UserDict()
1179 d = collections.UserDict(zip(words, itertools.count()))
H A 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})
H A Dtest_dict.py286 return collections.UserDict()
289 self.assertIsInstance(ud, collections.UserDict)
H A Dpickletester.py1174 # UserDict.UserDict({1: 2}), UserDict.IterableUserDict({1: 2})
1175 for name in (b'UserDict', b'IterableUserDict'):
1179 self.assertIs(type(unpickled), collections.UserDict)
1180 self.assertEqual(unpickled, collections.UserDict({1: 2}))
2868 (collections.UserDict(), 'UserDict', 'IterableUserDict'),
H A Dtest_functools.py2291 from collections import UserDict namespace
2294 class TracingDict(UserDict):
H A Dtest_configparser.py14 class SortedDict(collections.UserDict):
H A Dtest_builtin.py681 eval('[locals() for i in (2,3)]', g, collections.UserDict())
/third_party/node/deps/v8/third_party/jinja2/
H A Dsandbox.py61 from UserDict import UserDict, DictMixin namespace
64 _mutable_mapping_types += (UserDict, DictMixin)
234 the "user"-versions of the objects (`sets.Set`, `UserDict.*` etc.) and
/third_party/node/tools/inspector_protocol/jinja2/
H A Dsandbox.py67 from UserDict import UserDict, DictMixin namespace
69 _mutable_mapping_types += (UserDict, DictMixin)
210 the "user"-versions of the objects (`sets.Set`, `UserDict.*` etc.) and
/third_party/skia/third_party/externals/jinja2/
H A Dsandbox.py61 from UserDict import UserDict, DictMixin namespace
64 _mutable_mapping_types += (UserDict, DictMixin)
234 the "user"-versions of the objects (`sets.Set`, `UserDict.*` etc.) and
/third_party/python/Lib/collections/
H A D__init__.py11 * UserDict wrapper around dictionary objects for easier dict subclassing
21 'UserDict',
1103 ### UserDict
1106 class UserDict(_collections_abc.MutableMapping): class
1144 if isinstance(other, UserDict):
1151 if isinstance(other, UserDict):
1158 if isinstance(other, UserDict):
1172 if self.__class__ is UserDict:
1173 return UserDict(self.data.copy())
/third_party/python/Lib/
H A Dpprint.py539 _dispatch[_collections.UserDict.__repr__] = _pprint_user_dict

Completed in 35 milliseconds