Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ g2
Function
g2
extra_tests/snippets/syntax_generator.py:23–26 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
21
assert r == [2, 3, 4]
22
23
def
g2(x):
24
x =
yield
x
25
yield
x + 5
26
yield
x + 7
27
28
i = g2(23)
29
assert 23 == next(i)
Callers
9
g1
Method · 0.85
test_return
Method · 0.85
test_return_in_finally
Method · 0.85
test_break_in_finally_after_return
Method · 0.85
test_continue_in_finally_after_return
Method · 0.85
get_frame
Method · 0.85
get_frame_locals
Method · 0.85
_gen3
Function · 0.85
syntax_generator.py
File · 0.85
Calls
no outgoing calls
Tested by
8
g1
Method · 0.68
test_return
Method · 0.68
test_return_in_finally
Method · 0.68
test_break_in_finally_after_return
Method · 0.68
test_continue_in_finally_after_return
Method · 0.68
get_frame
Method · 0.68
get_frame_locals
Method · 0.68
_gen3
Function · 0.68