Searched refs:OrderedDict (Results 1 – 25 of 120) sorted by relevance
12345
/third_party/python/Lib/test/ |
D | test_ordered_dict.py | 35 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 …]
|
D | test_csv.py | 16 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/ |
D | test_decode.py | 3 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())]))
|
D | test_unicode.py | 2 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))
|
D | test_encode_basestring_ascii.py | 1 from collections import OrderedDict 32 s = self.dumps(OrderedDict(items))
|
/third_party/mindspore/tests/ut/python/pynative_mode/nn/ |
D | test_container.py | 16 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/ |
D | test_container.py | 16 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/ |
D | client_matrix.py | 18 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/ |
D | plistlib_generate_testdata.py | 11 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/ |
D | proto_builder_test.py | 36 from collections import OrderedDict 38 from ordereddict import OrderedDict #PY26 53 self.ordered_fields = OrderedDict([
|
/third_party/protobuf/python/google/protobuf/ |
D | proto_builder.py | 34 from collections import OrderedDict 36 from ordereddict import OrderedDict #PY26 88 if not isinstance(fields, OrderedDict):
|
/third_party/mesa3d/src/intel/genxml/ |
D | gen_sort_tags.py | 5 from collections import OrderedDict 55 self.deps = OrderedDict() 58 deps = OrderedDict() 131 sorted_structs = OrderedDict()
|
/third_party/iowow/src/kv/benchmark/ |
D | runbench.py | 5 from collections import OrderedDict 56 results = OrderedDict() 62 results[key] = OrderedDict() 64 results[key][bm] = OrderedDict()
|
/third_party/node/tools/inspector_protocol/ |
D | pdl.py | 21 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/ |
D | gen-swizzle-math-operations.py | 25 from collections import OrderedDict 136 INPUTS = OrderedDict([ 147 OPERATORS = OrderedDict([
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | gen-emoji-table.py | 6 from collections import OrderedDict 15 ranges = OrderedDict()
|
/third_party/harfbuzz/src/ |
D | gen-emoji-table.py | 10 from collections import OrderedDict 19 ranges = OrderedDict()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | gen-emoji-table.py | 11 from collections import OrderedDict 20 ranges = OrderedDict()
|
/third_party/mindspore/mindspore/nn/layer/ |
D | container.py | 16 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/ |
D | build_cleaner.py | 38 yaml.add_representer(collections.OrderedDict, repr_ordered_dict) 42 outdict = collections.OrderedDict()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0b3.rst | 197 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/ |
D | vk_physical_device_features.py | 28 from collections import OrderedDict, namedtuple 162 features = OrderedDict()
|
/third_party/grpc/src/python/grpcio/grpc/aio/ |
D | _metadata.py | 16 from collections import abc, OrderedDict 36 self._metadata = OrderedDict()
|
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/ |
D | _metadata.py | 16 from collections import abc, OrderedDict 36 self._metadata = OrderedDict()
|
/third_party/gstreamer/gstreamer/docs/ |
D | gst-plugins-doc-cache-generator.py | 27 from collections import OrderedDict 123 plugins = json.load(jfile, object_pairs_hook=OrderedDict)
|
12345