Added intention for replacing explicit iteration with delegation to sub-generator for Python 3.3 (PY-7383)

This commit is contained in:
Andrey Vlasovskikh
2012-08-30 21:06:58 +04:00
parent 5a0d7cdfe4
commit 67be1e45e0
6 changed files with 130 additions and 0 deletions
@@ -0,0 +1,4 @@
def f(g):
yield 'begin'
yield from g()
print('end')
@@ -0,0 +1,5 @@
def f(g):
yield 'begin'
for x in g():
yield <caret>x
print('end')