[Michael Hartl] > It's good that you're using Python 2.3, which does have sets available, > as a previous poster mentioned. Users of Python 2.2 or earlier can get > most of the Set functionality using the following class (from Peter > Norvig's utils.py file):
Py2.3's set module also works under Py2.2. Get a copy from viewcvs: http://tinyurl.com/6lqr3 or http://cvs.sourceforge.net/viewcvs.py/*checkout*/python/python/dist/src/Lib/sets.py?content-type=text%2Fplain&rev=1.43.4.2 Of course, if upgrading to Py2.4 is an option, that is the way to go. If you're living in a pre 2.2 world without iterators and generators, you're really missing out. Raymond Hettinger -- http://mail.python.org/mailman/listinfo/python-list