Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ gen
Function
gen
Lib/test/test_generators.py:1922–1928 ·
view source on GitHub ↗
(i)
Source
from the content-addressed store, hash-verified
1920
values = [None] * len(gs)
1921
1922
def
gen(i):
1923
if
i >= len(gs):
1924
yield
values
1925
else
:
1926
for
values[i] in gs[i]():
1927
for
x in gen(i+1):
1928
yield
x
1929
1930
for
x in gen(0):
1931
yield
x
Callers
11
test_frame_resurrect
Method · 0.70
test_refcycle
Method · 0.70
test_handle_frame_object_in_creation
Method · 0.70
genfunc
Method · 0.70
test_except_next
Method · 0.70
test_except_gen_except
Method · 0.70
outer
Method · 0.70
test_except_throw_exception_context
Method · 0.70
test_stopiteration_error
Method · 0.70
simple_conjoin
Function · 0.70
conjoin
Function · 0.70
Calls
2
len
Function · 0.85
_gen3
Function · 0.85
Tested by
no test coverage detected