On Tue, May 22, 2018 at 2:09 PM Terry Reedy <tjre...@udel.edu> wrote: [..] > I like the idea of making coroutines easier and use. It would make more > sense to me to expose an eventloop class as a builtin, so that one would > write
> eventloop().run_until_complete(hello) > eventloop would not necessarily have to be exactly the same as the > default returned by get_event_loop. Would all the asyncio eventloop > methods be needed? For running coroutines, it would be even nicer to write > eventloop().run(hello) We have asyncio.run() in 3.7: https://docs.python.org/3.7/library/asyncio-task.html#asyncio.run (event loop can be customized via policy). Yury _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/