pep-0492: Add another syntax example
This commit is contained in:
parent
51329f953d
commit
a09fa75d7d
|
@ -185,6 +185,7 @@ Expression Will be parsed as
|
|||
``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())``
|
||||
``-await foo()`` ``-(await foo())``
|
||||
================================== ==================================
|
||||
|
||||
Invalid syntax examples:
|
||||
|
|
Loading…
Reference in New Issue