Home  Trees  Indices  Help 



object +  Set
A simple set class.
Sets are not in Python until 2.3, and rdata are not immutable so we cannot use sets.Set anyway. This class implements subset of the 2.3 Set interface using a list as the container.
























the same type as self 


the same type as self 


the same type as self 


































bool 


bool 


Inherited from 


list 
items A list of the items which are in the set 


Inherited from 

Initialize the set.

repr(x)

Make a (shallow) copy of the set. There is a 'clone protocol' that subclasses of this class should use. To make a copy, first call your super's _clone() method, and use the object returned as the new instance. Then make shallow copies of the attributes defined in the subclass. This protocol allows us to write the set algorithms that return new instances (e.g. union) once, and keep using them in subclasses. 
Update the set, adding any elements from other which are not already in the set.

Update the set, removing any elements from other which are not in both sets.

Update the set, removing any elements from other which are in the set.

Return a new set which is the union of self and other.

Return a new set which is the intersection of self and other.

Return a new set which self  other, i.e. the items in self which are not also in other.

Update the set, adding any elements from other which are not already in the set.

Home  Trees  Indices  Help 


Generated by Epydoc 3.0.1 on Fri Sep 30 08:16:43 2016  http://epydoc.sourceforge.net 