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

Lines Matching full:sets

1 """Classes to represent arbitrary sets (including sets of sets).
3 This module implements sets using dictionaries whose values are
7 Important: sets are not sequences! While they support 'x in s',
11 integers: s[i], for i in range(len(s)). Sets don't support
13 their elements have a definite order; sets on the other hand don't
20 sets. This is an abstract class, not meant to be directly
23 Set -- Mutable sets, subclass of BaseSet; not hashable.
25 ImmutableSet -- Immutable sets, subclass of BaseSet; hashable.
62 warnings.warn("the sets module is deprecated", DeprecationWarning,
66 """Common base class for mutable and immutable sets."""
114 raise TypeError, "can't compare sets using cmp()"
179 """Return the union of two sets as a new set.
188 """Return the union of two sets as a new set.
197 """Return the intersection of two sets as a new set.
199 (I.e. all elements that are in both sets.)
206 """Return the intersection of two sets as a new set.
208 (I.e. all elements that are in both sets.)
220 """Return the symmetric difference of two sets as a new set.
222 (I.e. all elements that are in exactly one of the sets.)
229 """Return the symmetric difference of two sets as a new set.
231 (I.e. all elements that are in exactly one of the sets.)
248 """Return the difference of two sets as a new Set.
257 """Return the difference of two sets as a new Set.
328 raise TypeError, "Binary operation only permitted between sets"