Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ run_bisect
Function
run_bisect
example_code/item_102.py:98–100 ·
view source on GitHub ↗
(data, to_lookup)
Source
from the content-addressed store, hash-verified
96
data.index(index)
97
98
def
run_bisect(data, to_lookup):
99
for
index in to_lookup:
100
bisect_left(data, index)
101
102
baseline = (
103
timeit.timeit(
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected