On Tue, Mar 15, 2011 at 7:50 AM, Nick Coghlan <ncogh...@gmail.com> wrote:
> On Tue, Mar 15, 2011 at 10:27 AM, Greg Ewing
> <greg.ew...@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   |   ncogh...@gmail.com   |   Brisbane, Australia
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to