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

Method penup

Lib/turtle.py:2163–2175  ·  view source on GitHub ↗

Pull the pen up -- no drawing when moving. Aliases: penup | pu | up No argument Example (for a Turtle instance named turtle): >>> turtle.penup()

(self)

Source from the content-addressed store, hash-verified

2161
2162
2163 def penup(self):
2164 """Pull the pen up -- no drawing when moving.
2165
2166 Aliases: penup | pu | up
2167
2168 No argument
2169
2170 Example (for a Turtle instance named turtle):
2171 >>> turtle.penup()
2172 """
2173 if not self._drawing:
2174 return
2175 self.pen(pendown=False)
2176
2177 def pendown(self):
2178 """Pull the pen down -- drawing when moving.

Callers 5

test_teleportMethod · 0.95
maketreeFunction · 0.80
startFunction · 0.80
__init__Method · 0.80

Calls 1

penMethod · 0.95

Tested by 2

test_teleportMethod · 0.76