Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ send
Method
send
Lib/test/test_yield_from.py:1045–1048 ·
view source on GitHub ↗
(self, what)
Source
from the content-addressed store, hash-verified
1043
def
__next__(self):
1044
return
42
1045
def
send(self, what):
1046
nonlocal v
1047
v = what
1048
return
None
1049
def
outer():
1050
v =
yield
from
MyGen()
1051
g = outer()
Callers
9
test_delegation_of_send
Method · 0.45
run
Method · 0.45
test_conversion_of_sendNone_to_next
Method · 0.45
test_attempting_to_send_to_non_generator
Method · 0.45
test_broken_getattr_handling
Method · 0.45
f
Method · 0.45
test_delegating_generators_claim_to_be_running
Method · 0.45
test_close_with_cleared_frame
Method · 0.45
test_send_tuple_with_custom_generator
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected