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

Function switchupdown

Lib/turtledemo/paint.py:18–24  ·  view source on GitHub ↗
(x=0, y=0)

Source from the content-addressed store, hash-verified

16from turtle import *
17
18def switchupdown(x=0, y=0):
19 if pen()["pendown"]:
20 end_fill()
21 up()
22 else:
23 down()
24 begin_fill()
25
26def changecolor(x=0, y=0):
27 global colors

Callers 1

mainFunction · 0.85

Calls 2

downClass · 0.85
upClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…