MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / bisect

Method bisect

tests/sortedcollection.py:210–213  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

208 self.insert(value)
209
210 def bisect(self, item):
211 key = self._key(item)
212 pos = bisect_left(self._keys, key)
213 return pos
214
215 def pop(self):
216 self._keys.pop()

Callers 10

runMethod · 0.80
runMethod · 0.80
test_bisectFunction · 0.80
test_bisectFunction · 0.80
stress_bisectFunction · 0.80
test_bisectFunction · 0.80
test_bisect_keyFunction · 0.80
test_bisectFunction · 0.80
test_bisectFunction · 0.80
stress_bisectFunction · 0.80

Calls

no outgoing calls

Tested by 8

test_bisectFunction · 0.64
test_bisectFunction · 0.64
stress_bisectFunction · 0.64
test_bisectFunction · 0.64
test_bisect_keyFunction · 0.64
test_bisectFunction · 0.64
test_bisectFunction · 0.64
stress_bisectFunction · 0.64