On Tue, Mar 15, 2011 at 9:48 AM, Tarek Ziadé <ziade.ta...@gmail.com> wrote: > 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
Alas, the fallback trick doesn't work for the from __future__ compiler hacks. What you could do though, is isolate the logic for the import fallbacks and then do: from myproject.import_fallbacks import compiler, commands 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/archive%40mail-archive.com