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

Function init_shelf

Lib/turtledemo/sorting_animate.py:163–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 enable_keys()
162
163def init_shelf():
164 global s
165 s = Shelf(-200)
166 vals = (4, 2, 8, 9, 1, 5, 10, 3, 7, 6)
167 for i in vals:
168 s.push(Block(i))
169
170def disable_keys():
171 onkey(None, "s")

Callers 1

mainFunction · 0.85

Calls 3

pushMethod · 0.95
ShelfClass · 0.70
BlockClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…