[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [minion-cvs] Use Zooko"s zlibutil to do bounded uncompressionwith P...



On Tue, 2002-12-31 at 23:11, Zooko wrote:
> Cool!  You chose to use my zlibutil code!

Well, yeah. :) It's nice stuff -- I'm glad I didn't have to reinvent the
wheel there.  Thanks again.

> What's the minimum Python version you support?

I support 2.0 and up ... but I try to be helpful with (very) old
versions:

    [3]% python1.0 Main.py server
    ERROR: Mixminion requires Python version 2.0 or higher.
          You seem to be running version 1.0.1.

(Trying to make a file parse under 1.0 is... fun.)

> I support Python 1.5 in pyutil and Mnet, but not because there are actually any 
> Python 1.5 users [1].  More because we have *always* supported Python 1.5 (since 
> back when Python 1.5 was the latest version) and I have lots of utility 
> functions in compat.py [1] for that purpose.

Heh. Actually, I settled on 2.0 for similar reasons: at the time I
started, 2.2 was bleeding edge, but Redhat (if I recall) hadn't shipped
anything more recent than 2.0.  I was thinking about 1.5, but the new
2.0 features are just _so convenient_.

I'm thinking of dropping support for Python versions greater than three
years old between major releases.  So for example, Mixminion 1.0 will
support Python back to 2.0, but Mixminion 2.0 will only support Python
2.1 and up.

> Anyway, if you want to support Python 1.5, you'll have to change 
> "if sys.version[:3] < (2,2,0)" to "if compat.version()[:3] < (2,2,0)".

Cool; I'll check compat for other stuff as well.

BTW, I had a question about the zlibutil.py link on sourceforge.  Where
are the methods supposed to get their definition of hr?  I know it's
declared in humanreadable.py, but I don't see an import statement
anywhere in zlibutil.

(No big deal; I've just added a "hr = repr" to compensate.  Since
zlibutil only uses hr for error messages, I should be fine.)

Thanks again,
-- 
Nick Mathewson <nickm@alum.mit.edu>