Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ iterate
Function
iterate
Lib/test/test_asyncgen.py:45–49 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
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
Callers
4
to_list
Function · 0.85
test_default
Method · 0.85
test_set_return_value
Method · 0.85
test_set_return_value_iter
Method · 0.85
Calls
1
append
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…