Files
Mikhail Golubev 45cc683033 PY-10829 Extracted function is inserted *after* the function where it is used
I updated test data accordingly and removed now obsolete tests about
skipping preceding comments.
2015-04-02 20:08:32 +03:00

12 lines
200 B
Python

def f(x, y):
yield 'foo'
return x, y
def g(in1, in2):
out1, out2 = yield from bar(in1, in2)
print(out1, out2)
def bar(in1_new, in2_new):
return (yield from f(in1_new, in2_new))