Home
last modified time | relevance | path

Searched refs:frozenset (Results 1 – 25 of 168) sorted by relevance

1234567

/external/python/cpython2/Doc/c-api/
Dset.rst13 object: frozenset
17 This section details the public API for :class:`set` and :class:`frozenset`
32 :class:`set` and :class:`frozenset` objects. It is like a :c:type:`PyDictObject`
49 :class:`frozenset` type.
63 Return true if *p* is a :class:`frozenset` object or an instance of a
70 Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an
76 Return true if *p* is a :class:`set` object or a :class:`frozenset` object but
82 Return true if *p* is a :class:`frozenset` object but not an instance of a
97 Return a new :class:`frozenset` containing objects returned by the *iterable*.
98 The *iterable* may be *NULL* to create a new empty frozenset. Return the new
[all …]
/external/python/cpython3/Doc/c-api/
Dset.rst13 object: frozenset
15 This section details the public API for :class:`set` and :class:`frozenset`
30 :class:`set` and :class:`frozenset` objects. It is like a :c:type:`PyDictObject`
47 :class:`frozenset` type.
59 Return true if *p* is a :class:`frozenset` object or an instance of a
64 Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an
70 Return true if *p* is a :class:`set` object or a :class:`frozenset` object but
76 Return true if *p* is a :class:`frozenset` object but not an instance of a
91 Return a new :class:`frozenset` containing objects returned by the *iterable*.
92 The *iterable* may be *NULL* to create a new empty frozenset. Return the new
[all …]
/external/python/cpython2/Lib/test/
Dtest_set.py67 s = self.thetype([frozenset(self.letters)])
78 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
92 self.assertEqual(self.s | frozenset(self.otherword), i)
107 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
115 if self.thetype == frozenset():
127 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
137 self.assertEqual(self.s & frozenset(self.otherword), i)
153 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
164 self.assertEqual(self.s - frozenset(self.otherword), i)
180 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
[all …]
Dtest_pprint.py34 class frozenset2(frozenset):
37 class frozenset3(frozenset):
39 return frozenset.__repr__(self)
133 frozenset(), frozenset2(), frozenset3(),
142 frozenset({8}), frozenset2({8}), frozenset3({8}),
248 self.assertEqual(pprint.pformat(frozenset()), 'frozenset([])')
249 self.assertEqual(pprint.pformat(frozenset(range(3))),
251 self.assertEqual(pprint.pformat(frozenset(range(7)), width=20), '''\
Dtest_repr.py77 eq(r(frozenset([])), "frozenset([])")
78 eq(r(frozenset([1])), "frozenset([1])")
79 eq(r(frozenset([1, 2, 3])), "frozenset([1, 2, 3])")
80 eq(r(frozenset([1, 2, 3, 4, 5, 6])), "frozenset([1, 2, 3, 4, 5, 6])")
81 eq(r(frozenset([1, 2, 3, 4, 5, 6, 7])), "frozenset([1, 2, 3, 4, 5, 6, ...])")
211 y = frozenset(x)
Dtest_weakset.py88 for C in set, frozenset, dict.fromkeys, list, tuple:
101 self.assertEqual(self.s | frozenset(self.items2), i)
110 for C in set, frozenset, dict.fromkeys, list, tuple:
125 self.assertEqual(self.s & frozenset(self.items2), i)
138 self.assertEqual(self.s - frozenset(self.items2), i)
155 self.assertEqual(self.s ^ frozenset(self.items2), i)
/external/python/cpython3/Lib/test/
Dtest_set.py69 s = self.thetype([frozenset(self.letters)])
80 for C in set, frozenset, dict.fromkeys, str, list, tuple:
94 self.assertEqual(self.s | frozenset(self.otherword), i)
109 for C in set, frozenset, dict.fromkeys, str, list, tuple:
117 if self.thetype == frozenset():
129 for C in set, frozenset, dict.fromkeys, str, list, tuple:
139 self.assertEqual(self.s & frozenset(self.otherword), i)
155 for C in set, frozenset, dict.fromkeys, str, list, tuple:
166 self.assertEqual(self.s - frozenset(self.otherword), i)
182 for C in set, frozenset, dict.fromkeys, str, list, tuple:
[all …]
Dtest_reprlib.py80 eq(r(frozenset([])), "frozenset()")
81 eq(r(frozenset([1])), "frozenset({1})")
82 eq(r(frozenset([1, 2, 3])), "frozenset({1, 2, 3})")
83 eq(r(frozenset([1, 2, 3, 4, 5, 6])), "frozenset({1, 2, 3, 4, 5, 6})")
84 eq(r(frozenset([1, 2, 3, 4, 5, 6, 7])), "frozenset({1, 2, 3, 4, 5, 6, ...})")
115 eq(r(frozenset({1})), "frozenset({1})")
116 eq(r(frozenset({1, 2, 3})), "frozenset({1, 2, 3})")
117 eq(r(frozenset({1, 2, 3, 4, 5, 6})), "frozenset({1, 2, 3, 4, 5, 6})")
118 eq(r(frozenset({1, 2, 3, 4, 5, 6, 7})), "frozenset({1, 2, 3, 4, 5, 6, ...})")
213 y = frozenset(x)
Dtest_peepholer.py128 ('a in {1,2,3}', frozenset({1, 2, 3})),
129 ('a not in {"a","b","c"}', frozenset({'a', 'c', 'b'})),
130 ('a in {None, 1, None}', frozenset({1, None})),
131 ('a not in {(1, 2), 3, 4}', frozenset({(1, 2), 3, 4})),
132 ('a in {1, 2, 3, 3, 2, 1}', frozenset({1, 2, 3})),
Dtest_pprint.py35 class frozenset2(frozenset):
38 class frozenset3(frozenset):
40 return frozenset.__repr__(self)
169 frozenset(), frozenset2(), frozenset3(),
178 frozenset({8}), frozenset2({8}), frozenset3({8}),
372 self.assertEqual(pprint.pformat(frozenset()), 'frozenset()')
373 self.assertEqual(pprint.pformat(frozenset(range(3))),
375 self.assertEqual(pprint.pformat(frozenset(range(7)), width=20), '''\
631 self.assertEqual(clean(pprint.pformat(frozenset(keys))),
Dtest_weakset.py68 for C in set, frozenset, dict.fromkeys, list, tuple:
81 self.assertEqual(self.s | frozenset(self.items2), i)
90 for C in set, frozenset, dict.fromkeys, list, tuple:
105 self.assertEqual(self.s & frozenset(self.items2), i)
118 self.assertEqual(self.s - frozenset(self.items2), i)
135 self.assertEqual(self.s ^ frozenset(self.items2), i)
/external/mesa3d/src/compiler/glsl/
Dir_expression_operation.py352 self.flags = frozenset()
354 self.flags = frozenset([flags])
356 self.flags = frozenset(flags)
499 …6(unpack_snorm_1x16, op[0]->value.u[0], &data.f[0], &data.f[1])", flags=frozenset((horizontal_oper…
500 …0]->value.u[0], &data.f[0], &data.f[1], &data.f[2], &data.f[3])", flags=frozenset((horizontal_oper…
501 …6(unpack_unorm_1x16, op[0]->value.u[0], &data.f[0], &data.f[1])", flags=frozenset((horizontal_oper…
502 …0]->value.u[0], &data.f[0], &data.f[1], &data.f[2], &data.f[3])", flags=frozenset((horizontal_oper…
503 …16(unpack_half_1x16, op[0]->value.u[0], &data.f[0], &data.f[1])", flags=frozenset((horizontal_oper…
514 …ression="memcpy(&data.d[0], &op[0]->value.u[0], sizeof(double))", flags=frozenset((horizontal_oper…
515 …ression="memcpy(&data.u[0], &op[0]->value.d[0], sizeof(double))", flags=frozenset((horizontal_oper…
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dcompat.py35 frozenset = frozenset variable
37 from sets import Set as set, ImmutableSet as frozenset unknown
/external/tensorflow/tensorflow/contrib/graph_editor/
Dselect.py303 output_ts_set = frozenset(output_ts)
304 ops_set = frozenset(ops)
316 consumers = frozenset(t.consumers())
321 inside_ts_set = frozenset(inside_ts)
322 only_inside_ts_set = frozenset(only_inside_ts)
418 seed_ops = frozenset(seed_ops)
419 stop_at_ts = frozenset(util.make_list_of_t(stop_at_ts))
422 within_ops = frozenset(within_ops)
483 stop_at_ts = frozenset(util.make_list_of_t(stop_at_ts))
484 seed_ops = frozenset(util.make_list_of_op(seed_ops))
[all …]
/external/libmojo/third_party/jinja2/
Dsandbox.py79 (_mutable_set_types, frozenset([
83 (_mutable_mapping_types, frozenset([
86 (_mutable_sequence_types, frozenset([
89 (deque, frozenset([
227 intercepted_binops = frozenset()
242 intercepted_unops = frozenset()
/external/tensorflow/tensorflow/tools/test/
Dcheck_futures_test.py40 REQUIRED_FUTURES = frozenset(['absolute_import', 'division', 'print_function'])
93 whitelist = frozenset(os.path.join(BASE_DIR, w) for w in WHITELIST)
94 old_division = frozenset(os.path.join(BASE_DIR, w) for w in OLD_DIVISION)
/external/autotest/site_utils/stats/
Dapache_access_log_metrics.py85 WHITELISTED_ENDPOINTS = frozenset((
99 WHITELISTED_METHODS = (frozenset(dir(rpc_interface)) |
100 frozenset(dir(moblab_rpc_interface)))
/external/autotest/scheduler/
Drdb_requests.py201 kwargs['deps'] = frozenset(kwargs['deps'])
202 kwargs['preferred_deps'] = frozenset(kwargs['preferred_deps'])
203 kwargs['acls'] = frozenset(kwargs['acls'])
Drdb_cache_manager.py259 return cls.key(deps=frozenset(deps), acls=frozenset(acls))
/external/autotest/server/site_tests/network_WiFi_VisibleScan/
Dnetwork_WiFi_VisibleScan.py59 expected_ssids = frozenset([self.BROADCAST_SSID])
61 frozenset([self.context.router.get_ssid()]))
/external/v8/tools/testrunner/objects/
Dtestcase.py39 self.outcomes = frozenset([])
66 test.outcomes = frozenset(task[5])
/external/python/cpython3/Lib/idlelib/
Dhyperparser.py13 _ASCII_ID_CHARS = frozenset(string.ascii_letters + string.digits + "_")
15 _ASCII_ID_FIRST_CHARS = frozenset(string.ascii_letters + "_")
160 _ID_KEYWORDS = frozenset({"True", "False", "None"})
/external/python/cpython3/Lib/
Dsre_parse.py20 DIGITS = frozenset("0123456789")
22 OCTDIGITS = frozenset("01234567")
23 HEXDIGITS = frozenset("0123456789abcdefABCDEF")
24 ASCIILETTERS = frozenset("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
26 WHITESPACE = frozenset(" \t\n\r\v\f")
28 _REPEATCODES = frozenset({MIN_REPEAT, MAX_REPEAT})
29 _UNITCODES = frozenset({ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY})
/external/python/cpython2/Lib/
D_strptime.py172 no_saving = frozenset(["utc", "gmt", self.tzname[0].lower()])
174 has_saving = frozenset([self.tzname[1].lower()])
176 has_saving = frozenset()
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt033backtracking.g17 frozenset = frozenset
19 from sets import Set as set, ImmutableSet as frozenset

1234567