[Python-ideas] Make asyncio.get_event_loop a builtin

João Santos jmcs at jsantos.eu
Fri May 25 02:57:30 EDT 2018


Hi,

You can use uvloop <https://github.com/MagicStack/uvloop>, for example,
without using asyncio:

import uvloop
loop = uvloop.new_event_loop()
loop.run_forever()


Best regards,
João Santos

On Fri, 25 May 2018 at 02:42, Ken Hilton <kenlhilton at gmail.com> wrote:

> On Tue May 22 22:08:40 (-0400), Chris Barker wrote:
> > while asyncio is in the standard library, it is not intended to be THE
> async event loop implementation
>
> I'm surprised this is true - with dedicated syntax like async def/await,
> it's still not THE async event loop implementation? As far as I know,
> "async def" is a shorthand for
>
> @asyncio.coroutine
> def
>
> and "await" is short for "yield from".
>
> Sincerely,
> Ken Hilton;
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180525/89eba177/attachment.html>


More information about the Python-ideas mailing list