mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added intention for replacing explicit iteration with delegation to sub-generator for Python 3.3 (PY-7383)
This commit is contained in:
@@ -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')
|
||||
Reference in New Issue
Block a user