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

Method to_list

Lib/test/test_asyncgen.py:983–987  ·  view source on GitHub ↗
(self, gen)

Source from the content-addressed store, hash-verified

981 self.loop.run_until_complete(call_with_wrong_type_arg())
982
983 async def to_list(self, gen):
984 res = []
985 async for i in gen:
986 res.append(i)
987 return res
988
989 def test_async_gen_asyncio_01(self):
990 async def gen():

Callers 3

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected