MCPcopy Index your code
hub / github.com/python/cpython / insert

Method insert

Lib/test/test_free_threading/test_bisect.py:15–18  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

13class TestBase:
14 def do_racing_insort(self, insert_method):
15 def insert(data):
16 for _ in range(OBJECT_COUNT):
17 x = random.randint(-OBJECT_COUNT, OBJECT_COUNT)
18 insert_method(data, x)
19
20 data = list(range(OBJECT_COUNT))
21 threading_helper.run_concurrently(

Calls 1

randintMethod · 0.80

Tested by

no test coverage detected