MCPcopy 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

21assert r == [2, 3, 4]
22
23def g2(x):
24 x = yield x
25 yield x + 5
26 yield x + 7
27
28i = g2(23)
29assert 23 == next(i)

Callers 9

g1Method · 0.85
test_returnMethod · 0.85
get_frameMethod · 0.85
get_frame_localsMethod · 0.85
_gen3Function · 0.85

Calls

no outgoing calls

Tested by 8

g1Method · 0.68
test_returnMethod · 0.68
get_frameMethod · 0.68
get_frame_localsMethod · 0.68
_gen3Function · 0.68