2
Vote

Extract method should support yield from when extracting yield expressions

description

We can transform code containing yield's into yield from:
def f():
    yield 42
Extracting "yield 42" to:
def g():
    yield 42

def f():
    yield from g()

comments