Home
last modified time | relevance | path

Searched refs:OrderedDict (Results 1 – 25 of 108) sorted by relevance

12345

/third_party/python/Lib/test/
Dtest_ordered_dict.py35 OrderedDict = self.OrderedDict
37 OrderedDict([('a', 1), ('b', 2)], None) # too many args
39 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
40 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
41 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input
42 self.assertEqual(list(OrderedDict([('a', 1), ('b', 2), ('c', 9), ('d', 4)],
46 self.assertEqual(list(OrderedDict(self=42).items()), [('self', 42)])
47 self.assertEqual(list(OrderedDict(other=42).items()), [('other', 42)])
48 self.assertRaises(TypeError, OrderedDict, 42)
49 self.assertRaises(TypeError, OrderedDict, (), ())
[all …]
Dtest_csv.py16 from collections import OrderedDict
1281 [OrderedDict([('FirstName', 'Eric'), ('LastName', 'Idle')]),
1282 OrderedDict([('FirstName', 'Graham'), ('LastName', 'Chapman'),
1284 OrderedDict([('FirstName', 'Under1'), ('LastName', None)]),
1285 OrderedDict([('FirstName', 'John'), ('LastName', 'Cleese')]),
1289 [OrderedDict([('FirstName', 'Eric'), ('LastName', 'Idle')]),
1290 OrderedDict([('FirstName', 'Graham'), ('LastName', 'Chapman'),
1292 OrderedDict([('FirstName', 'Under1'), ('LastName', None)]),
1293 OrderedDict([('FirstName', 'John'), ('LastName', 'Cleese')]),
1298 [OrderedDict([('fname', 'Eric'), ('lname', 'Idle')]),
[all …]
Dtest_collections.py17 from collections import namedtuple, Counter, OrderedDict, _count_elements
184 OrderedDict(j=0, h=88888),
185 OrderedDict(),
186 OrderedDict(i=9999, d=4444, c=3333),
187 OrderedDict(f=666, b=222, g=777, c=333, h=888),
188 OrderedDict(),
189 OrderedDict(e=55, b=22),
190 OrderedDict(a=1, b=2, c=3, d=4, e=5),
191 OrderedDict(),
666 self.assertEqual(a._asdict(), OrderedDict([('x', 3), ('y', 4)]))
[all …]
/third_party/python/Lib/test/test_json/
Dtest_decode.py3 from collections import OrderedDict
32 od = self.loads(s, object_pairs_hook=OrderedDict)
33 self.assertEqual(od, OrderedDict(p))
34 self.assertEqual(type(od), OrderedDict)
36 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
38 OrderedDict(p))
40 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
41 OrderedDict())
43 object_pairs_hook=OrderedDict),
44 OrderedDict([('empty', OrderedDict())]))
Dtest_unicode.py2 from collections import OrderedDict
88 od = self.loads(s, object_pairs_hook = OrderedDict)
89 self.assertEqual(od, OrderedDict(p))
90 self.assertEqual(type(od), OrderedDict)
92 self.assertEqual(self.loads(s, object_pairs_hook = OrderedDict,
94 OrderedDict(p))
Dtest_encode_basestring_ascii.py1 from collections import OrderedDict
32 s = self.dumps(OrderedDict(items))
/third_party/python/Mac/Tools/
Dplistlib_generate_testdata.py11 from collections import OrderedDict
25 pl = OrderedDict()
37 pl[nsstr('aDict')] = d = OrderedDict()
42 d[nsstr('deeperDict')] = dd = OrderedDict()
/third_party/protobuf/python/google/protobuf/internal/
Dproto_builder_test.py36 from collections import OrderedDict
38 from ordereddict import OrderedDict #PY26
53 self.ordered_fields = OrderedDict([
/third_party/protobuf/python/google/protobuf/
Dproto_builder.py34 from collections import OrderedDict
36 from ordereddict import OrderedDict #PY26
88 if not isinstance(fields, OrderedDict):
/third_party/mesa3d/src/intel/genxml/
Dgen_sort_tags.py5 from collections import OrderedDict
55 self.deps = OrderedDict()
58 deps = OrderedDict()
131 sorted_structs = OrderedDict()
/third_party/node/deps/v8/third_party/inspector_protocol/
Dpdl.py22 item['items'] = collections.OrderedDict()
40 result = collections.OrderedDict(d)
54 protocol = collections.OrderedDict()
55 protocol['version'] = collections.OrderedDict()
/third_party/node/tools/inspector_protocol/
Dpdl.py21 item['items'] = collections.OrderedDict()
36 result = collections.OrderedDict(d)
50 protocol = collections.OrderedDict()
51 protocol['version'] = collections.OrderedDict()
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgen-swizzle-math-operations.py25 from collections import OrderedDict
136 INPUTS = OrderedDict([
147 OPERATORS = OrderedDict([
/third_party/skia/third_party/externals/harfbuzz/src/
Dgen-emoji-table.py11 from collections import OrderedDict
20 ranges = OrderedDict()
/third_party/python/Misc/NEWS.d/
D3.5.0b3.rst197 Check for changed OrderedDict size during iteration.
206 Support keyword arguments in OrderedDict methods.
215 Simplify the C OrderedDict fast nodes resize logic.
224 Fix a ref leak in OrderedDict.__repr__.
/third_party/mesa3d/src/vulkan/runtime/
Dvk_physical_device_features.py27 from collections import OrderedDict, namedtuple
161 features = OrderedDict()
/third_party/gstreamer/gstreamer/docs/
Dgst-plugins-doc-cache-generator.py27 from collections import OrderedDict
123 plugins = json.load(jfile, object_pairs_hook=OrderedDict)
/third_party/python/Doc/library/
Dcollections.rst29 :class:`OrderedDict` dict subclass that remembers the order entries were added
952 Returns an :class:`OrderedDict` instead of a regular :class:`dict`.
955 Returns a regular :class:`dict` instead of an :class:`OrderedDict`.
957 extra features of :class:`OrderedDict` are required, the suggested
959 ``OrderedDict(nt._asdict())``.
1070 :class:`OrderedDict` objects
1084 * The :class:`OrderedDict` was designed to be good at reordering operations.
1088 * Algorithmically, :class:`OrderedDict` can handle frequent reordering
1093 * The equality operation for :class:`OrderedDict` checks for matching order.
1095 * The :meth:`popitem` method of :class:`OrderedDict` has a different
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
Dgen_packed_gl_enums.py12 from collections import OrderedDict
44 enums_dict = json.loads(map_file.read(), object_pairs_hook=OrderedDict)
/third_party/mesa3d/src/vulkan/util/
Dvk_entrypoints.py25 from collections import OrderedDict, namedtuple
103 entrypoints = OrderedDict()
/third_party/gn/examples/ios/build/toolchain/apple/
Dswiftc.py13 class OrderedSet(collections.OrderedDict):
112 depfile_content = collections.OrderedDict()
/third_party/node/deps/v8/tools/release/
Dmerge_to_branch.py30 from collections import OrderedDict
70 self["full_revision_list"] = list(OrderedDict.fromkeys(
Droll_merge.py30 from collections import OrderedDict
71 self["full_revision_list"] = list(OrderedDict.fromkeys(
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
Dgen_builtin_symbols.py17 from collections import OrderedDict
754 self.objs = OrderedDict()
771 self.objs[name_hash] = OrderedDict()
968 self.objs = OrderedDict()
983 self.objs[name_hash] = OrderedDict()
1255 self.script_generated_hash_tests = OrderedDict()
1256 self.unmangled_script_generated_hash_tests = OrderedDict()
1343 parsed_functions = OrderedDict()
2080 parsed_variables = json.load(f, object_pairs_hook=OrderedDict)
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_isa.py56 from collections import OrderedDict
328 lst = list(OrderedDict.fromkeys(modifier_lists[mod]))

12345