[Python-Dev] packaging

Tarek Ziadé ziade.tarek at gmail.com
Tue Mar 15 14:48:18 CET 2011


On Tue, Mar 15, 2011 at 7:50 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Tue, Mar 15, 2011 at 10:27 AM, Greg Ewing
> <greg.ewing at canterbury.ac.nz> wrote:
>> Maybe this will be the killer app for the "or" enhancement
>> to the import statement. :-)
>
> Except that won't help, since even if it were added right now, pre-3.3
> compatible code couldn't use it :)

or if you backport it, we could add a new fallback ;)

try:
    from __future__ import or_importer
except ImportError:
    XXX <-- previous proposal
 else:
    or based proposal




>
> Cheers,
> Nick.
>
> --
> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/ziade.tarek%40gmail.com
>



-- 
Tarek Ziadé | http://ziade.org


More information about the Python-Dev mailing list