Lines Matching refs:frozenset

67         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:
189 self.assertEqual(self.s ^ frozenset(self.otherword), i)
199 self.assertEqual(self.s, frozenset(self.word))
202 self.assertNotEqual(self.s, frozenset(self.otherword))
206 t = map(frozenset, ['abcdef', 'bcd', 'bdcb', 'fed', 'fedccba'])
234 if type(self.s) not in (set, frozenset):
325 d3 = dict.fromkeys(frozenset(d))
327 d3 = dict.fromkeys(frozenset(d), 123)
404 s = self.thetype([frozenset(self.word)])
437 s = self.thetype([frozenset(self.word)])
457 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
463 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
484 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
514 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
550 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
604 thetype = frozenset
612 f = frozenset()
613 efs = [frozenset(), frozenset([]), frozenset(()), frozenset(''),
614 frozenset(), frozenset([]), frozenset(()), frozenset(''),
615 frozenset(xrange(0)), frozenset(frozenset()),
616 frozenset(f), f]
662 addhashvalue(hash(frozenset([e for e, m in elemmasks if m&i])))
665 class FrozenSetSubclass(frozenset):
687 f = frozenset()
692 Frozenset(frozenset()), f, F, Frozenset(f), Frozenset(F)]
947 inner = frozenset([1])
950 self.assertEqual(type(element), frozenset)
1598 for cons in (set, frozenset):
1686 x = frozenset([U.next()])
1691 yield frozenset()
1695 singletons = [frozenset([x]) for x in range(n)]
1696 return dict([(x, frozenset([x^s for s in singletons]))
1706 nx = [frozenset([x,z]) for z in G[x] if z != y]
1707 ny = [frozenset([y,z]) for z in G[y] if z != x]
1708 L[frozenset([x,y])] = frozenset(nx+ny)
1721 f.add(frozenset([v1, v2, v3]))
1727 f.add(frozenset([v1, v2, v3, v4]))
1733 f.add(frozenset([v1, v2, v3, v4, v5]))