[Python-checkins] peps: pep-0492: Add one more 'await' syntax example

yury.selivanov python-checkins at python.org
Tue Apr 28 05:24:30 CEST 2015


https://hg.python.org/peps/rev/4110da8ae758
changeset: 5804:4110da8ae758
user: Yury Selivanov <yselivanov at sprymix.com>
date: Mon Apr 27 23:24:26 2015 -0400
summary:
 pep-0492: Add one more 'await' 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
@@ -184,6 +184,7 @@
 ``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.
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /