Common base class for mutable and immutable sets.
|
__init__(self)
This is an abstract class. |
|
|
|
__len__(self)
Return the number of elements of a set. |
|
|
|
__repr__(self)
Return string representation of a set. |
|
|
|
__str__(self)
Return string representation of a set. |
|
|
|
_repr(self,
sorted=False) |
|
|
|
__iter__(self)
Return an iterator over the elements or a set. |
|
|
|
|
|
|
|
|
|
copy(self)
Return a shallow copy of a set. |
|
|
|
__copy__(self)
Return a shallow copy of a set. |
|
|
|
__deepcopy__(self,
memo)
Return a deep copy of a set; used by copy module. |
|
|
|
__or__(self,
other)
Return the union of two sets as a new set. |
|
|
|
union(self,
other)
Return the union of two sets as a new set. |
|
|
|
__and__(self,
other)
Return the intersection of two sets as a new set. |
|
|
|
intersection(self,
other)
Return the intersection of two sets as a new set. |
|
|
|
__xor__(self,
other)
Return the symmetric difference of two sets as a new set. |
|
|
|
|
|
__sub__(self,
other)
Return the difference of two sets as a new Set. |
|
|
|
difference(self,
other)
Return the difference of two sets as a new Set. |
|
|
|
__contains__(self,
element)
Report whether an element is a member of a set. |
|
|
|
issubset(self,
other)
Report whether another set contains this set. |
|
|
|
issuperset(self,
other)
Report whether this set contains another set. |
|
|
|
__le__(self,
other)
Report whether another set contains this set. |
|
|
|
__ge__(self,
other)
Report whether this set contains another set. |
|
|
|
|
|
|
|
_binary_sanity_check(self,
other) |
|
|
|
|
|
|