Home
last modified time | relevance | path

Searched refs:OrderedDict (Results 1 – 25 of 120) 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 …]
/third_party/python/Lib/test/test_json/
Dtest_decode.py3 from collections import OrderedDict
31 od = self.loads(s, object_pairs_hook=OrderedDict)
32 self.assertEqual(od, OrderedDict(p))
33 self.assertEqual(type(od), OrderedDict)
35 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
37 OrderedDict(p))
39 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
40 OrderedDict())
42 object_pairs_hook=OrderedDict),
43 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/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_container.py16 from collections import OrderedDict
51 m = nn.SequentialCell(OrderedDict(
56 m = nn.SequentialCell(OrderedDict(
61 m = nn.SequentialCell(OrderedDict(
67 m = nn.SequentialCell(OrderedDict(
73 m = nn.SequentialCell(OrderedDict(
79 m = nn.SequentialCell(OrderedDict(
85 m = nn.SequentialCell(OrderedDict(
91 m = nn.SequentialCell(OrderedDict(
/third_party/mindspore/tests/ut/python/nn/
Dtest_container.py16 from collections import OrderedDict
51 m = nn.SequentialCell(OrderedDict(
56 m = nn.SequentialCell(OrderedDict(
61 m = nn.SequentialCell(OrderedDict(
67 m = nn.SequentialCell(OrderedDict(
73 m = nn.SequentialCell(OrderedDict(
79 m = nn.SequentialCell(OrderedDict(
85 m = nn.SequentialCell(OrderedDict(
/third_party/grpc/tools/interop_matrix/
Dclient_matrix.py18 from collections import OrderedDict
79 OrderedDict([
111 OrderedDict([
162 OrderedDict([
226 OrderedDict([
282 OrderedDict([
298 OrderedDict([
341 OrderedDict([
373 OrderedDict([
/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/iowow/src/kv/benchmark/
Drunbench.py5 from collections import OrderedDict
56 results = OrderedDict()
62 results[key] = OrderedDict()
64 results[key][bm] = 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/flutter/skia/third_party/externals/harfbuzz/src/
Dgen-emoji-table.py6 from collections import OrderedDict
15 ranges = OrderedDict()
/third_party/harfbuzz/src/
Dgen-emoji-table.py10 from collections import OrderedDict
19 ranges = OrderedDict()
/third_party/skia/third_party/externals/harfbuzz/src/
Dgen-emoji-table.py11 from collections import OrderedDict
20 ranges = OrderedDict()
/third_party/mindspore/mindspore/nn/layer/
Dcontainer.py16 from collections import OrderedDict
152 elif isinstance(cells, OrderedDict):
170 OrderedDict(list(self._cells.items())[index]))
200 temp_dict = OrderedDict()
326 temp_dict = OrderedDict()
/third_party/grpc/tools/buildgen/
Dbuild_cleaner.py38 yaml.add_representer(collections.OrderedDict, repr_ordered_dict)
42 outdict = collections.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/util/
Dvk_physical_device_features.py28 from collections import OrderedDict, namedtuple
162 features = OrderedDict()
/third_party/grpc/src/python/grpcio/grpc/aio/
D_metadata.py16 from collections import abc, OrderedDict
36 self._metadata = OrderedDict()
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_metadata.py16 from collections import abc, OrderedDict
36 self._metadata = 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)

12345