A collection of unique objects, with uniqueness determined by an
equals method.
Methods
|
|
|
|
__contains__
|
__contains__ ( self, x )
Is x contained in this set?
|
|
__getitem__
|
__getitem__ ( self, index )
|
|
__init__
|
__init__ ( self, seq=None )
|
|
__len__
|
__len__ ( self )
|
|
__repr__
|
__repr__ ( self )
|
|
__str__
|
__str__ ( self )
|
|
add
|
add ( self, x )
Add an object to the list.
|
|
intersectWith
|
intersectWith ( self, other )
Perform the intersection of self and other, replacing self.
|
|
remove
|
remove ( self, x )
Remove an object from the list.
|
|
sort
|
sort ( self, function=None )
Sort the elements of the set according to some comparison
function. Sorting simply changes the order in which the elements
are printed, nothing more.
|
|
unionWith
|
unionWith ( self, other )
Perform the union of self and other, replacing self.
|
|