MCPcopy Index your code
hub / github.com/python/cpython / Gen

Class Gen

Lib/test/test_asyncgen.py:743–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741 def test_async_gen_aiter_class(self):
742 results = []
743 class Gen:
744 async def __aiter__(self):
745 yield 1
746 yield 2
747 g = Gen()
748 async def consume():
749 ait = aiter(g)

Callers 2

Calls

no outgoing calls

Tested by 2