f39d3b93da
Iterators and ducktype objects can now be arguments of yield from.
9 lines
110 B
Python
9 lines
110 B
Python
def gen():
|
|
yield from (1, 2, 3)
|
|
|
|
def gen2():
|
|
yield from gen()
|
|
|
|
print(list(gen()))
|
|
print(list(gen2()))
|