[Python-Dev] Re: [Pythonmac-SIG] The versioning question... (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Dec 28 00:34:54 CET 2004
- Previous message: [Python-Dev] Re: [Pythonmac-SIG] The versioning question...
- Next message: [Python-Dev] Re: [Pythonmac-SIG] The versioning question...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eric Nieuwland wrote:
Would it be an idea to submit a PEP for extending the 'import' keyword?
No. Normally, packages should aim for backwards compatibility, so that applications would only want to specify a minimum version, such as
import xml assert xml.version_info > (0,8,2)
If you really want side-by-side installation of different versions, and a mechanism to select between them, the package could support
import xml_0_8_2 as xml
IOW, "import-as" should be sufficient for what you want to achieve.
Regards, Martin
- Previous message: [Python-Dev] Re: [Pythonmac-SIG] The versioning question...
- Next message: [Python-Dev] Re: [Pythonmac-SIG] The versioning question...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]