PEP: import version

Skip Montanaro skip at pobox.com
Thu May 13 11:28:43 EDT 2004


    Manlio> This, I think, can be resolved by allowing an user to explicitly
    Manlio> say what version of a module it wants (sush as version numbers
    Manlio> in Linux shared objects).

    Manlio> A possible syntax is this:
    Manlio> import wxPython version '2.4'

Somehow that version has to map to a different file being loaded, so it
seems to me the proper place to record this information is in sys.path (or
before the program runs, PYTHONPATH).  Voila!  No syntax changes required.

Skip




More information about the Python-list mailing list