/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 …]
|
D | test_collections.py | 17 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/ |
D | test_decode.py | 3 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())]))
|
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/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/node/deps/v8/third_party/inspector_protocol/ |
D | pdl.py | 22 item['items'] = collections.OrderedDict() 40 result = collections.OrderedDict(d) 54 protocol = collections.OrderedDict() 55 protocol['version'] = collections.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/skia/third_party/externals/harfbuzz/src/ |
D | gen-emoji-table.py | 11 from collections import OrderedDict 20 ranges = 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/runtime/ |
D | vk_physical_device_features.py | 27 from collections import OrderedDict, namedtuple 161 features = 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)
|
/third_party/python/Doc/library/ |
D | collections.rst | 29 :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/ |
D | gen_packed_gl_enums.py | 12 from collections import OrderedDict 44 enums_dict = json.loads(map_file.read(), object_pairs_hook=OrderedDict)
|
/third_party/mesa3d/src/vulkan/util/ |
D | vk_entrypoints.py | 25 from collections import OrderedDict, namedtuple 103 entrypoints = OrderedDict()
|
/third_party/gn/examples/ios/build/toolchain/apple/ |
D | swiftc.py | 13 class OrderedSet(collections.OrderedDict): 112 depfile_content = collections.OrderedDict()
|
/third_party/node/deps/v8/tools/release/ |
D | merge_to_branch.py | 30 from collections import OrderedDict 70 self["full_revision_list"] = list(OrderedDict.fromkeys(
|
D | roll_merge.py | 30 from collections import OrderedDict 71 self["full_revision_list"] = list(OrderedDict.fromkeys(
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | gen_builtin_symbols.py | 17 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/ |
D | bifrost_isa.py | 56 from collections import OrderedDict 328 lst = list(OrderedDict.fromkeys(modifier_lists[mod]))
|