Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ generator
Function
generator
Tools/ftscalingbench/ftscalingbench.py:97–102 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
95
96
@register_benchmark
97
def
generator():
98
accu = 0
99
for
i in range(100 * WORK_SCALE):
100
for
v in simple_gen():
101
accu += v
102
return
accu
103
104
class
Counter:
105
def
__init__(self):
Callers
4
_assert_type_error
Method · 0.85
test_close_clears_frame
Method · 0.85
test_except_throw_bad_exception
Method · 0.85
callback
Method · 0.85
Calls
1
simple_gen
Function · 0.85
Tested by
4
_assert_type_error
Method · 0.68
test_close_clears_frame
Method · 0.68
test_except_throw_bad_exception
Method · 0.68
callback
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…