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

Method _open_gap_from_i

Lib/turtledemo/sorting_animate.py:56–59  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

54 b.setx(xpos - 34)
55
56 def _open_gap_from_i(self, i):
57 for b in self[i:]:
58 xpos, _ = b.pos()
59 b.setx(xpos + 34)
60
61 def pop(self, key):
62 b = list.pop(self, key)

Callers 1

insertMethod · 0.95

Calls 2

posMethod · 0.45
setxMethod · 0.45

Tested by

no test coverage detected