Which module is "set " in?
Raymond Hettinger
vze4rx4y at verizon.net
Sat Feb 26 06:51:13 EST 2005
[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
More information about the Python-list
mailing list