Lines Matching refs:frozenset
68 s = self.thetype([frozenset(self.letters)])
79 for C in set, frozenset, dict.fromkeys, str, list, tuple:
93 self.assertEqual(self.s | frozenset(self.otherword), i)
108 for C in set, frozenset, dict.fromkeys, str, list, tuple:
116 if self.thetype == frozenset():
128 for C in set, frozenset, dict.fromkeys, str, list, tuple:
138 self.assertEqual(self.s & frozenset(self.otherword), i)
154 for C in set, frozenset, dict.fromkeys, str, list, tuple:
165 self.assertEqual(self.s - frozenset(self.otherword), i)
181 for C in set, frozenset, dict.fromkeys, str, list, tuple:
190 self.assertEqual(self.s ^ frozenset(self.otherword), i)
200 self.assertEqual(self.s, frozenset(self.word))
203 self.assertNotEqual(self.s, frozenset(self.otherword))
207 t = map(frozenset, ['abcdef', 'bcd', 'bdcb', 'fed', 'fedccba'])
232 if type(self.s) not in (set, frozenset):
347 d3 = dict.fromkeys(frozenset(d))
349 d3 = dict.fromkeys(frozenset(d), 123)
433 s = self.thetype([frozenset(self.word)])
466 s = self.thetype([frozenset(self.word)])
486 for C in set, frozenset, dict.fromkeys, str, list, tuple:
492 for C in set, frozenset, dict.fromkeys, str, list, tuple:
513 for C in set, frozenset, dict.fromkeys, str, list, tuple:
543 for C in set, frozenset, dict.fromkeys, str, list, tuple:
579 for C in set, frozenset, dict.fromkeys, str, list, tuple:
670 thetype = frozenset
671 basetype = frozenset
679 f = frozenset()
680 efs = [frozenset(), frozenset([]), frozenset(()), frozenset(''),
681 frozenset(), frozenset([]), frozenset(()), frozenset(''),
682 frozenset(range(0)), frozenset(frozenset()),
683 frozenset(f), f]
729 addhashvalue(hash(frozenset([e for e, m in elemmasks if m&i])))
734 nums = [frozenset()]
736 num = frozenset(nums)
742 yield from map(frozenset, itertools.combinations(s, i))
751 class FrozenSetSubclass(frozenset):
756 basetype = frozenset
774 f = frozenset()
779 Frozenset(frozenset()), f, F, Frozenset(f), Frozenset(F)]
1037 inner = frozenset([1])
1040 self.assertEqual(type(element), frozenset)
1700 for cons in (set, frozenset):
1801 x = frozenset([next(U)])
1806 yield frozenset()
1810 singletons = [frozenset([x]) for x in range(n)]
1811 return dict([(x, frozenset([x^s for s in singletons]))
1821 nx = [frozenset([x,z]) for z in G[x] if z != y]
1822 ny = [frozenset([y,z]) for z in G[y] if z != x]
1823 L[frozenset([x,y])] = frozenset(nx+ny)
1836 f.add(frozenset([v1, v2, v3]))
1842 f.add(frozenset([v1, v2, v3, v4]))
1848 f.add(frozenset([v1, v2, v3, v4, v5]))