What is yield from?
Generators and yield
Audio flashcard · 0:14Nortren·
What is yield from?
0:14
Yield from delegates iteration to a sub-generator or any iterable. It is equivalent to a for loop that yields each value, but it also forwards values sent to the outer generator and propagates return values. It is essential for cleanly composing generators.
peps.python.org