PEP 492: isn't the "await" redundant?

Marko Rauhamaa marko at pacujo.net
Fri Aug 26 05:41:38 EDT 2016


Kouli <dev at kou.li>:
> We now have explicit syntax with keyword 'async' so why should we use
> yet the additional keyword 'await'?

This is an important question.

> This way, one would not have to differentiate between function and
> coroutine "call" from within a coroutine...

You'd still need to remember to add the 'async' keyword all over the
place.

How about making *every* function *always* and async, unconditionally?
That way *every* function would be an async and every function call
would be an await.


Marko



More information about the Python-list mailing list