Package SCons :: Package compat :: Module _scons_sets :: Class BaseSet
[hide private]
[frames] | no frames]

Class BaseSet

source code

object --+
         |
        BaseSet
Known Subclasses:
ImmutableSet, Set, _TemporarilyImmutableSet

Common base class for mutable and immutable sets.



Instance Methods [hide private]
 
__init__(self)
This is an abstract class.
source code
 
__len__(self)
Return the number of elements of a set.
source code
 
__repr__(self)
Return string representation of a set.
source code
 
__str__(self)
Return string representation of a set.
source code
 
_repr(self, sort_them=False) source code
 
__iter__(self)
Return an iterator over the elements or a set.
source code
 
__cmp__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
copy(self)
Return a shallow copy of a set.
source code
 
__copy__(self)
Return a shallow copy of a set.
source code
 
__deepcopy__(self, memo)
Return a deep copy of a set; used by copy module.
source code
 
__or__(self, other)
Return the union of two sets as a new set.
source code
 
union(self, other)
Return the union of two sets as a new set.
source code
 
__and__(self, other)
Return the intersection of two sets as a new set.
source code
 
intersection(self, other)
Return the intersection of two sets as a new set.
source code
 
__xor__(self, other)
Return the symmetric difference of two sets as a new set.
source code
 
symmetric_difference(self, other)
Return the symmetric difference of two sets as a new set.
source code
 
__sub__(self, other)
Return the difference of two sets as a new Set.
source code
 
difference(self, other)
Return the difference of two sets as a new Set.
source code
 
__contains__(self, element)
Report whether an element is a member of a set.
source code
 
issubset(self, other)
Report whether another set contains this set.
source code
 
issuperset(self, other)
Report whether this set contains another set.
source code
 
__le__(self, other)
Report whether another set contains this set.
source code
 
__ge__(self, other)
Report whether this set contains another set.
source code
 
__lt__(self, other) source code
 
__gt__(self, other) source code
 
_binary_sanity_check(self, other) source code
 
_compute_hash(self) source code
 
_update(self, iterable) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]
  _data

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
This is an abstract class.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Return string representation of a set.

This looks like 'Set([<list of elements>])'.

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
Return string representation of a set.

This looks like 'Set([<list of elements>])'.

Overrides: object.__str__

__iter__(self)

source code 
Return an iterator over the elements or a set.

This is the keys iterator for the underlying dict.

__or__(self, other)
(Or operator)

source code 
Return the union of two sets as a new set.

(I.e. all elements that are in either set.)

union(self, other)

source code 
Return the union of two sets as a new set.

(I.e. all elements that are in either set.)

__and__(self, other)
(And operator)

source code 
Return the intersection of two sets as a new set.

(I.e. all elements that are in both sets.)

intersection(self, other)

source code 
Return the intersection of two sets as a new set.

(I.e. all elements that are in both sets.)

__xor__(self, other)

source code 
Return the symmetric difference of two sets as a new set.

(I.e. all elements that are in exactly one of the sets.)

symmetric_difference(self, other)

source code 
Return the symmetric difference of two sets as a new set.

(I.e. all elements that are in exactly one of the sets.)

__sub__(self, other)
(Subtraction operator)

source code 
Return the difference of two sets as a new Set.

(I.e. all elements that are in this set and not in the other.)

difference(self, other)

source code 
Return the difference of two sets as a new Set.

(I.e. all elements that are in this set and not in the other.)

__contains__(self, element)
(In operator)

source code 
Report whether an element is a member of a set.

(Called in response to the expression `element in self'.)