More user feedback on Sets.py
Raymond Hettinger
vze4rx4y at verizon.net
Wed Nov 12 10:26:28 EST 2003
[Raymond]
> > I have added some backwards compatability code so that Sets.py will run
> > Python 2.2. Please give it a test drive:
> >
> >
http://cvs.sourceforge.net/viewcvs.py/*checkout*/python/python/dist/src/Lib/se
> > ts.py?content-type=text%2Fplain&rev=1.44.8.4
[Dave Eppstein]
> Thanks! Doesn't quite work out of the box, though...
>
> Python 2.2 (#1, 07/14/02, 23:25:09)
> [GCC Apple cpp-precomp 6.14] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sets
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/site-packages/sets.py", line 79, in ?
> class BaseSet(object):
> File "/usr/lib/python2.2/site-packages/sets.py", line 109, in BaseSet
> def _repr(self, sorted=False):
> NameError: name 'False' is not defined
Okay, I've added code to make this run with older versions of Py2.2.
Still, it's worth downloading the bugfix release 2.2.3 which has
True/False in it and a number of important fixups.
Raymond Hettinger
More information about the Python-list
mailing list