-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/20/2014 03:55 PM, Victor Stinner wrote: > Hi, > > I synchronized Trollius with Tulip 3.4.1. As discussed on this > list, I also chose to rename "asyncio" to "trollius" to make it > possible to use Trollius on Python 3.4+. > > It is now more explicit than Trollius and Tulip are two different > projects which are "almost the same" but are different (yield from > ... vs yield From(...)). > > It's still a beta version. I plan to release a new version this > week. I hesitate between the version "0.3" and the version "1.0". > > It would be nice if someone can test the folllowing projects which > are known to work on Tulip and Trollius: > > - AutobahnPython - Pulsar - Tornado - aiodns > > You will need to modify the source code to add the following code > at the top of files using asyncio: --- try: # Use Trollius on > Python <= 3.2 import trollius as asyncio except ImportError: # Use > Tulip on Python 3.3, or builtin asyncio on Python 3.4+ import > asyncio --- >
Hi Victor! I just tried running the aiodns test suite on Python 3.3.X and it runs just fine :-) I wonder what approach should libraries follow for Python 3.3+, since a user could have both asyncio and trollius installed, and depending on how the import try-except dance is done results could be unexpected... Cheers, - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTfbskAAoJEEEOVVOum8BZ1vUP/RKSTL+W6T6UPBK+SV0WhSCG CQDHF0SBizrIU1nowdICFGQoucxfA5Lt1S8b1LRm40xrhS1AQpL/wOrOJ6PbeISI /SLxqpovVPQ0lHjiSTzYd0aUMXjr/3dZV8aAIW7ERowXFtbVH2WP6HqYtggJVgfE hDrFa6XkZyqsZuT/k0T4Dx4mAygTNYCupbIzpzjdRXtQKWOkDCvJQUWYC4z5MgGx 4KDZaAGuyj4C4fz2dJGDy/1+837HSFcl50IpeEehOfsnaGrq6rbQoB5ovmB50xNi DcPQ9OfWVwwQIVERG6rvEzkwr0qCLTY7yI2Uz/WZ6RvgKmr2vgocPqEZqbEfPHPI Fm117rUPONNTYLgz4wyqtA1EWoQXxPiTtdxHwekf//y6+Zc6bPx2VUAVNhOy1VB4 ld5kNcXVZPIRNevKr0M5F6fLjwmXkBy+mMSp/diiZqfJx/it7OSDpaEo9lbcMqu9 jf+ZSnGtH/crifuDc0CVXajLbZwK8yj+nh9liH2/ZLPKeQnKy6FdhgpJ4J4gKO/v 4INPn8LxLzEGPLRv7TNIj+e/Cgs5zkH2iwyQhFp93+U2W9qXhTMaQ+9OYdid+0sf xko/UQCGFxXmugXRJWB6GCrtuJ+sxrPXhvy1v9zKbJj5M+lThMI4Aed3Bt/15bg8 xvowngLLsHgIwYleJ9eT =kAyP -----END PGP SIGNATURE-----
