Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ callback
Method
callback
Lib/test/test_timeit.py:380–381 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
378
379
def
test_autorange_with_callback(self):
380
def
callback(a, b):
381
print(
"{} {:.3f}"
.format(a, b))
382
with
captured_stdout()
as
s:
383
num_loops, time_taken = self.autorange(callback=callback)
384
self.assertEqual(num_loops, 500)
Callers
nothing calls this directly
Calls
2
print
Function · 0.50
format
Method · 0.45
Tested by
no test coverage detected