Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
16
from
turtle
import
*
17
18
def
switchupdown(x=0, y=0):
19
if
pen()[
"pendown"
]:
20
end_fill()
21
up()
22
else
:
23
down()
24
begin_fill()
25
26
def
changecolor(x=0, y=0):
27
global colors
Callers
1
main
Function · 0.85
Calls
2
down
Class · 0.85
up
Class · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…