[Python-checkins] peps: pep-0492: Why "async def" -- add a note about grammar.
yury.selivanov
python-checkins at python.org
Thu Apr 23 20:23:42 CEST 2015
https://hg.python.org/peps/rev/ec319bf4c86e
changeset: 5788:ec319bf4c86e
user: Yury Selivanov <yselivanov at sprymix.com>
date: Thu Apr 23 14:23:36 2015 -0400
summary:
pep-0492: Why "async def" -- add a note about grammar.
files:
pep-0492.txt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -896,8 +896,9 @@
confusion, like "for async item in iterator" can be read as "for each
asynchronous item in iterator".
-Also, "async def" better separates coroutines from regular functions
-visually.
+Having ``async`` keyword before ``def``, ``with`` and ``for`` also
+makes the language grammar simpler. And "async def" better separates
+coroutines from regular functions visually.
Why not a __future__ import
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list