Using 2.2 stdlib modules in 2.1

A.M. Kuchling akuchlin at ute.mems-exchange.org
Wed Apr 24 11:17:36 EDT 2002


In article <3cc6c34f.3125812 at news.t-online.de>, Gerson Kurz wrote:
> Can I just distribute hmac.py with my BSD-licensed open source app, or

That would be OK.  A good approach might be to add a py21 subdirectory
to your software, and append it to sys.path if the Python interpreter
is version 2.1.  That means the system hmac.py will be used with
Python versions 2.2 and up, acquiring any bug fixes that happen to be
made to the module in future versions.

--amk                                                             (www.amk.ca)
Prying curiosity means death.
    -- H.P. Lovecraft, "The Rats in the Walls"



More information about the Python-list mailing list