MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / prepare

Function prepare

example_code/item_104.py:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120def list_overdue_benchmark(count):
121 def prepare():
122 to_add = list(range(count))
123 random.shuffle(to_add)
124 return [], to_add
125
126 def run(queue, to_add):
127 for i in to_add:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected