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

Method _close_gap_from_i

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

Source from the content-addressed store, hash-verified

49 self.append(d)
50
51 def _close_gap_from_i(self, i):
52 for b in self[i:]:
53 xpos, _ = b.pos()
54 b.setx(xpos - 34)
55
56 def _open_gap_from_i(self, i):
57 for b in self[i:]:

Callers 1

popMethod · 0.95

Calls 2

posMethod · 0.45
setxMethod · 0.45

Tested by

no test coverage detected