MCPcopy 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()

Calls

no outgoing calls

Tested by

no test coverage detected