python file versioning

kartik kartick_vaddadi at yahoo.com
Mon Oct 25 23:12:07 EDT 2004


"Diez B. Roggisch" <deetsNOSPAM at web.de> wrote in message news:<clj363$acl$05$1 at news.t-online.com>...

> file mod_22:
> from __future__ import nifty_feature
> import bar
> 
> file mod_23:
> import bar
> 
> 
> app.py:
> 
> import sys
> 
> if sys.version_info[:2] == (2,2):
>     import mod_22 as mod
> else:
>     import mod_23 as mod
> 
> 
> So I think I showed the OP a way to deal with version-dependencies.

that's a quite a bit of work. i'm talking about automating this



More information about the Python-list mailing list