[Spambayes] RE: Further Improvement 2

Guido van Rossum guido@python.org
Sun, 22 Sep 2002 03:06:01 -0400


> > So I expect it would be an easy project to get this code working
> > under 2.2, but for someone more conversant with Python than you are
> > so far.  It's not something I'm going to do, though -- anyone else?
> 
> I can do this in my (and Orlijn's :-) sleep, as long as I can drop
> copies of sets.py and heapq.py into the distribution, and as long as
> the rest of the developers in the project from then on stop using
> 2.3-isms.

Done now.  The only thing that required being awake was figuring out
what to use instead of get_content_[main]type(), which are new in the
2.3 email package.

This requires Python 2.2.1 -- the original Python 2.2 won't do, as it
doesn't have True and False, and there are tons of these.  (I didn't
go the way of a "compatibility" module -- it didn't seem worth it,
since the majority of changes were adding "from __future__ import
generators" and you can't import that from another module.)

Caveat: I haven't tried every tool with Python 2.2.1.  But I grepped
every file for yield, enumerate and get_content_, and I ran timcv.py
and hammie.py, which are the ones I actually know how to use.

--Guido van Rossum (home page: http://www.python.org/~guido/)