blob: be76572bf99bccbf4fd91466133ac7374af4be57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
def gen():
yield from (1, 2, 3)
def gen2():
yield from gen()
def gen3():
yield from (4, 5)
yield 6
print(list(gen()))
print(list(gen2()))
print(list(gen3()))
|