Package MySQLdb :: Module sets :: Class Set
[show private | hide private]
[frames | no frames]

Class Set

Known Subclasses:
DBAPISet

A simple class for handling sets. Sets are immutable in the same way numbers are.
Method Summary
  __init__(self, *values)
Use values to initialize the Set.
  __add__(self, other)
Union.
  __and__(self, other)
Intersection.
  __cmp__(self, other)
  __contains__(self, value)
  __eq__(self, other)
  __ge__(self, other)
  __getitem__(self, n)
  __getslice__(self, n1, n2)
  __gt__(self, other)
  __hash__(self)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __mul__(self, other)
Intersection.
  __ne__(self, other)
  __or__(self, other)
Union.
  __repr__(self)
  __str__(self)
Returns the values as a comma-separated string.
  __sub__(self, other)
  __xor__(self, other)
Intersection's complement.

Method Details

__init__(self, *values)
(Constructor)

Use values to initialize the Set.

__add__(self, other)
(Addition operator)

Union.

__and__(self, other)
(And operator)

Intersection.

__mul__(self, other)

Intersection.

__or__(self, other)
(Or operator)

Union.

__str__(self)
(Informal representation operator)

Returns the values as a comma-separated string.

__xor__(self, other)

Intersection's complement.

Generated by Epydoc 2.0 on Mon Jan 31 23:02:11 2005 http://epydoc.sf.net