python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
188 stars 37 forks source link

Use async_generator module for 3.5 support. #17

Closed miracle2k closed 6 years ago

miracle2k commented 6 years ago

The new async generator support as-is means that trio-asyncio no longer imports on 3.5 at all, when before it did. While the docs say it's not officially supported, it worked just fine. In particular, I am using it with PyPy, which seems to support some kind of weird mixture between 3.5 and 3.6, but mostly 3.5 and no async generator syntax.

Every trio user already has the async_generator module installed anyway, since it is a hard dependency of trio itself. I think it is therefore an easy decision to use it to bring back PyPy support.