Home | Trees | Index | Help |
---|
object
--+
|
BaseSet
ImmutableSet
Common base class for mutable and immutable sets.
Method Summary | |
---|---|
This is an abstract class. | |
Return the intersection of two sets as a new set. | |
__cmp__(self,
other)
| |
Report whether an element is a member of a set. | |
Return a shallow copy of a set. | |
Return a deep copy of a set; used by copy module. | |
__eq__(self,
other)
| |
Report whether this set contains another set. | |
__gt__(self,
other)
| |
Return an iterator over the elements or a set. | |
Report whether another set contains this set. | |
Return the number of elements of a set. | |
__lt__(self,
other)
| |
__ne__(self,
other)
| |
Return the union of two sets as a new set. | |
Return string representation of a set. | |
Return string representation of a set. | |
Return the difference of two sets as a new Set. | |
Return the symmetric difference of two sets as a new set. | |
Return a shallow copy of a set. | |
Return the difference of two sets as a new Set. | |
Return the intersection of two sets as a new set. | |
Report whether another set contains this set. | |
Report whether this set contains another set. | |
Return the symmetric difference of two sets as a new set. | |
Return the union of two sets as a new set. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
list |
__slots__ = ['_data']
|
Method Details |
---|
Return the intersection of two sets as a new set.
(I.e. all elements that are in both sets.)
Report whether an element is a member of a set.
(Called in response to the expression `element in self'.)
Return a shallow copy of a set.
Return a deep copy of a set; used by copy module.
Report whether this set contains another set.
Return an iterator over the elements or a set.
This is the keys iterator for the underlying dict.
Report whether another set contains this set.
Return the number of elements of a set.
Return the union of two sets as a new set.
(I.e. all elements that are in either set.)
Return string representation of a set.
This looks like 'Set([<list of elements>])'.
__builtin__.object.__repr__
Return string representation of a set.
This looks like 'Set([<list of elements>])'.
__builtin__.object.__repr__
Return the difference of two sets as a new Set.
(I.e. all elements that are in this set and not in the other.)
Return the symmetric difference of two sets as a new set.
(I.e. all elements that are in exactly one of the sets.)
Return a shallow copy of a set.
Return the difference of two sets as a new Set.
(I.e. all elements that are in this set and not in the other.)
Return the intersection of two sets as a new set.
(I.e. all elements that are in both sets.)
Report whether another set contains this set.
Report whether this set contains another set.
Return the symmetric difference of two sets as a new set.
(I.e. all elements that are in exactly one of the sets.)
Return the union of two sets as a new set.
(I.e. all elements that are in either set.)
Class Variable Details |
---|
list
['_data']
Home | Trees | Index | Help |
---|