[Python-checkins] peps: pep-0492: Add another syntax example

yury.selivanov python-checkins at python.org
Wed Apr 29 18:28:20 CEST 2015


https://hg.python.org/peps/rev/3cbd6795d46a
changeset:   5806:3cbd6795d46a
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Apr 29 12:28:16 2015 -0400
summary:
  pep-0492: Add another syntax example

files:
  pep-0492.txt |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -185,6 +185,7 @@
 ``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:

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list