pep-0492: Add another syntax example

This commit is contained in:
Yury Selivanov 2015-04-29 12:28:16 -04:00
parent 51329f953d
commit a09fa75d7d
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ Expression Will be parsed as
``res = await coro() ** 2`` ``res = (await coro()) ** 2`` ``res = await coro() ** 2`` ``res = (await coro()) ** 2``
``func(a1=await coro(), a2=0)`` ``func(a1=(await coro()), a2=0)`` ``func(a1=await coro(), a2=0)`` ``func(a1=(await coro()), a2=0)``
``await foo() + await bar()`` ``(await foo()) + (await bar())`` ``await foo() + await bar()`` ``(await foo()) + (await bar())``
``-await foo()`` ``-(await foo())``
================================== ================================== ================================== ==================================
Invalid syntax examples: Invalid syntax examples: