MCPcopy Create free account
hub / github.com/ActiveState/code / set_position

Method set_position

recipes/Python/361168_Vpython_example/recipe-361168.py:174–174  ·  view source on GitHub ↗
(self, newPosition)

Source from the content-addressed store, hash-verified

172 # Allows one to get and set the index of the stack that we're in
173 def get_position(self): return self._position
174 def set_position(self, newPosition): self.moveTo(newPosition)
175 position = property(get_position, set_position)
176
177 # Returns a list of the blocks that are above us in our stack

Callers

nothing calls this directly

Calls 1

moveToMethod · 0.95

Tested by

no test coverage detected