| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Package compat :: Module _scons_sets15 :: Class Set |
|
The set class. It can contain mutable objects.
| Method Summary | |
|---|---|
The constructor. | |
Symmetric difference of two sets. | |
Intersection of two sets. | |
__contains__(self,
elem)
| |
Returns 1 if the sets are equal. | |
__getitem__(self,
index)
| |
__iter__(self)
| |
Returns 1 if the lhs set is contained in the rhs set. | |
__len__(self)
| |
Returns 1 if the lhs set is contained but not equal to the rhs set. | |
Cartesian product of two sets. | |
Union of two sets. | |
__str__(self)
| |
Difference of two sets. | |
Add one element to the set. | |
Shallow copy of a set object. | |
Remove an element from the set. | |
Returns a list of the elements in the set. | |
Remove an element from the set. | |
sort(self,
func)
| |
| Method Details |
|---|
__init__(self,
seq=None)
|
__add__(self,
other)
|
__and__(self,
other)
|
__eq__(self,
other)
|
__le__(self,
other)
|
__lt__(self,
other)
|
__mul__(self, other)Cartesian product of two sets. |
__or__(self,
other)
|
__sub__(self,
other)
|
add(self, elem)Add one element to the set. |
copy(self)Shallow copy of a set object. |
discard(self, elem)Remove an element from the set. Do nothing if elem is not in the set. |
items(self)Returns a list of the elements in the set. |
remove(self, elem)Remove an element from the set. Return an error if elem is not in the set. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 | http://epydoc.sf.net |