[Python-checkins] peps: pep-0492: Slightly imrpove example 2 of "async for" section

yury.selivanov python-checkins at python.org
Thu Apr 23 22:27:44 CEST 2015


https://hg.python.org/peps/rev/2c85e3e7f906
changeset:   5796:2c85e3e7f906
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Thu Apr 23 16:27:42 2015 -0400
summary:
  pep-0492: Slightly imrpove example 2 of "async for" section

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


diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -383,8 +383,8 @@
                 raise StopAsyncIteration
             return value
 
-    async for item in AsyncIteratorWrapper("abc"):
-        print(item)
+    async for letter in AsyncIteratorWrapper("abc"):
+        print(letter)
 
 
 Why StopAsyncIteration?

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


More information about the Python-checkins mailing list