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

Function delitem

tests/benchmark_scale.py:191–194  ·  view source on GitHub ↗

Repeatedly delete values from sorted list by index in indices.

(obj, indices)

Source from the content-addressed store, hash-verified

189
190@timeit
191def delitem(obj, indices):
192 "Repeatedly delete values from sorted list by index in indices."
193 for index in PROGRESS(indices, 'del'):
194 del obj[index]
195
196
197def randvalues(limit, fraction=0.001):

Callers 1

benchmark_delFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected