Add 3.7 "async for" in generator

This commit is contained in:
rocky
2019-12-15 21:18:37 -05:00
parent 0eaeb82d48
commit af9f6b05fa
4 changed files with 88 additions and 55 deletions

View File

@@ -0,0 +1,5 @@
# From 3.7 test_asyncgen.py
# Bug is handling new "async for" lingo
def make_arange(n):
# This syntax is legal starting with Python 3.7
return (i * 2 async for i in n)