pep-0492: Add one more 'await' syntax example

This commit is contained in:
Yury Selivanov 2015-04-27 23:24:26 -04:00
parent 94b51bc711
commit 50587d4184
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ Expression Will be parsed as
``return await coro()`` ``return ( await coro() )``
``res = await coro() ** 2`` ``res = (await coro()) ** 2``
``func(a1=await coro(), a2=0)`` ``func(a1=(await coro()), a2=0)``
``await foo() + await bar()`` ``(await foo()) + (await bar())``
================================== ==================================
See `Grammar Updates`_ section for details.