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

Method teleport

Lib/turtle.py:2370–2377  ·  view source on GitHub ↗

To be overwritten by child class RawTurtle. Includes no TNavigator references.

(self, x=None, y=None, *, fill_gap: bool = False)

Source from the content-addressed store, hash-verified

2368 return self._color(self._fillcolor)
2369
2370 def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
2371 """To be overwritten by child class RawTurtle.
2372 Includes no TNavigator references.
2373 """
2374 pendown = self.isdown()
2375 if pendown:
2376 self.pen(pendown=False)
2377 self.pen(pendown=pendown)
2378
2379 def showturtle(self):
2380 """Makes the turtle visible.

Callers 2

test_teleportMethod · 0.95
test_teleportMethod · 0.45

Calls 2

isdownMethod · 0.95
penMethod · 0.95

Tested by 2

test_teleportMethod · 0.76
test_teleportMethod · 0.36