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

Method _go

Lib/turtle.py:1663–1666  ·  view source on GitHub ↗

move turtle forward by specified distance

(self, distance)

Source from the content-addressed store, hash-verified

1661 self._setDegreesPerAU(math.tau)
1662
1663 def _go(self, distance):
1664 """move turtle forward by specified distance"""
1665 ende = self._position + self._orient * distance
1666 self._goto(ende)
1667
1668 def _rotate(self, angle):
1669 """Turn turtle counterclockwise by specified angle if angle > 0."""

Callers 3

forwardMethod · 0.95
backMethod · 0.95
circleMethod · 0.95

Calls 1

_gotoMethod · 0.95

Tested by

no test coverage detected