Home | History | Annotate | Download | only in python2.7

Lines Matching refs:BaseSet

19 BaseSet -- All the operations common to both mutable and immutable
23 Set -- Mutable sets, subclass of BaseSet; not hashable.
25 ImmutableSet -- Immutable sets, subclass of BaseSet; hashable.
59 __all__ = ['BaseSet', 'Set', 'ImmutableSet']
65 class BaseSet(object):
75 if self.__class__ is BaseSet:
76 raise TypeError, ("BaseSet is an abstract class. "
132 if isinstance(other, BaseSet):
138 if isinstance(other, BaseSet):
183 if not isinstance(other, BaseSet):
201 if not isinstance(other, BaseSet):
210 if not isinstance(other, BaseSet):
224 if not isinstance(other, BaseSet):
252 if not isinstance(other, BaseSet):
327 if not isinstance(other, BaseSet):
334 # not called __hash__ because a BaseSet should not be hashable;
346 if isinstance(iterable, BaseSet):
378 class ImmutableSet(BaseSet):
383 # BaseSet + hashing
403 class Set(BaseSet):
408 # BaseSet + operations requiring mutability; no hashing
446 if isinstance(other, BaseSet):
461 if not isinstance(other, BaseSet):
480 if not isinstance(other, BaseSet):
548 class _TemporarilyImmutableSet(BaseSet):