MCPcopy Index your code
hub / github.com/python/cpython / gen

Function gen

Lib/test/test_generators.py:1915–1921  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

1913 values = [None] * len(gs)
1914
1915 def gen(i):
1916 if i >= len(gs):
1917 yield values
1918 else:
1919 for values[i] in gs[i]():
1920 for x in gen(i+1):
1921 yield x
1922
1923 for x in gen(0):
1924 yield x

Callers 11

test_frame_resurrectMethod · 0.70
test_refcycleMethod · 0.70
genfuncMethod · 0.70
test_except_nextMethod · 0.70
outerMethod · 0.70
simple_conjoinFunction · 0.70
conjoinFunction · 0.70

Calls 1

_gen3Function · 0.85

Tested by

no test coverage detected