Table of Contents

Class: Set church.py

A collection of unique objects, with uniqueness determined by an equals method.

Methods   
__contains__
__getitem__
__init__
__len__
__repr__
__str__
add
intersectWith
remove
sort
unionWith
  __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.


Table of Contents

This document was automatically generated on Tue Jul 30 20:58:34 2002 by HappyDoc version 2.0.1