MCPcopy Index your code
hub / github.com/bslatkin/effectivepython / run

Function run

example_code/item_104.py:126–132  ·  view source on GitHub ↗
(queue, to_add)

Source from the content-addressed store, hash-verified

124 return [], to_add
125
126 def run(queue, to_add):
127 for i in to_add:
128 queue.append(i)
129 queue.sort(reverse=True)
130
131 while queue:
132 queue.pop()
133
134 return timeit.timeit(
135 setup="queue, to_add = prepare()",

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected