PEP: import version

David Fraser davidf at sjsoft.com
Thu May 13 11:54:56 EDT 2004


Peter Otten wrote:
> Manlio Perillo wrote:
> 
> 
>>A possible syntax is this:
>>import wxPython version '2.4'
> 
> 
> Why not just
> 
> import wxPython2_4 as wxPython
> 
> and a symlink or something equivalent pointing to the latest version
> to also allow
> 
> import wxPython

We've been discussing different approaches to allow version import on 
the wxPython list. See the wiki entry at
http://wiki.wxpython.org/index.cgi/VersionSelection

My latest code is attached, which allows selection via command-line 
parameters, assuming wxPython is installed in well-named subdirectories. 
See the wxpython users list for more info

David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wxselect.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20040513/793279a4/attachment.ksh>


More information about the Python-list mailing list