Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_list
Function
to_list
Lib/test/test_asyncgen.py:44–51 ·
view source on GitHub ↗
(gen)
Source
from the content-addressed store, hash-verified
42
43
44
def
to_list(gen):
45
async
def
iterate():
46
res = []
47
async
for
i in gen:
48
res.append(i)
49
return
res
50
51
return
run_until_complete(iterate())
52
53
54
def
py_anext(iterator, default=_no_default):
Callers
4
test_async_gen_iteration_01
Method · 0.85
test_async_gen_exception_03
Method · 0.85
test_async_gen_exception_05
Method · 0.85
test_async_gen_exception_06
Method · 0.85
Calls
2
run_until_complete
Function · 0.85
iterate
Function · 0.85
Tested by
no test coverage detected