A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-December/050557.html below:

[Python-Dev] Re: [Pythonmac-SIG] The versioning question...

[Python-Dev] Re: [Pythonmac-SIG] The versioning question... [Python-Dev] Re: [Pythonmac-SIG] The versioning question...Skip Montanaro skip at pobox.com
Tue Dec 28 05:26:51 CET 2004
    Martin> If you really want side-by-side installation of different
    Martin> versions, and a mechanism to select between them, the package
    Martin> could support

    Martin> import xml_0_8_2 as xml

    Martin> IOW, "import-as" should be sufficient for what you want to achieve.

That's more-or-less the scheme adopted where I work.  If we have two
versions of a sybase module installed side-by-side, the imports might look
like:

    import local.db.sybase.v1 as sybase

or

    import local.db.sybase.v2 as sybase

It's a bit cumbersome, but it's worked okay for us so far.

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4