MCPcopy Index your code
hub / github.com/RustPython/RustPython / send

Method send

Lib/test/test_yield_from.py:1048–1051  ·  view source on GitHub ↗
(self, what)

Source from the content-addressed store, hash-verified

1046 def __next__(self):
1047 return 42
1048 def send(self, what):
1049 nonlocal v
1050 v = what
1051 return None
1052 def outer():
1053 v = yield from MyGen()
1054 g = outer()

Calls

no outgoing calls

Tested by

no test coverage detected