[Re-sending this to just the list in an attempt to appease Google Groups; apologies for any duplicates.]
On this subject, one thing that would also be really useful is some kind of shared test suite. I know there's Victor's aiotest, and we're using it in trio-asyncio [1], but I'm not sure how reliable it actually is, given that it mostly hasn't been touched since 2014 and afaict asyncio itself doesn't use it. OTOH CPython's Lib/test/test_asyncio/ is presumably reliable since it's maintained and used, but I don't know how to use it to test a third party event loop. I'd love to hear what strategies other third party loops are using. -n [1] https://github.com/python-trio/trio-asyncio On Mon, Oct 30, 2017 at 12:26 AM, Andrew Svetlov <[email protected]> wrote: > Also there is a well supported https://github.com/harvimt/quamash project > for running asyncio on Qt event loop. > > On Sun, Oct 29, 2017 at 8:46 PM Guido van Rossum <[email protected]> wrote: >> >> That's a great idea. I don't think we have docs for this, but the source >> of the event loop is pretty accessible. Yury has implemented a replacement >> event loop in C (or was it C++?), "uvloop" so he probably has a more useful >> answer. >> >> On Sun, Oct 29, 2017 at 4:48 AM, Ronald Oussoren <[email protected]> >> wrote: >>> >>> Hi, >>> >>> Is there documentation on how to implement new eventloops for asyncio? In >>> particular, I intend to write an eventloop implementation for a GUI library >>> (PyObjC). >>> >>> Ronald >> >> >> >> >> -- >> --Guido van Rossum (python.org/~guido) > > -- > Thanks, > Andrew Svetlov -- Nathaniel J. Smith -- https://vorpus.org
