2014-05-22 12:24 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>:
> There is, however, a problem: if
> someone wants to keep a single codebase for their application,
> regardless of the Python version, they need to go with Trollius,
> because of yield from vs yield From(), so if that application depends
> on aiodns then bad things will happen, as it will prefer asyncio over
> Trollius on Python 3.3+.

The try/except using asyncio or trollius should only be used for code
working on both. It is possible to write code working on both modules:
http://trollius.readthedocs.org/#write-code-working-on-trollius-and-tulip

For example, it works if you only use callbacks, not coroutines.

If your code only works on Trollius, why would you use the try/except
ImportError? I cannot work on Python 3.4 (with asyncio).

Victor

Reply via email to