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

Function demo

Lib/turtledemo/penrose.py:145–153  ·  view source on GitHub ↗
(fun=sun)

Source from the content-addressed store, hash-verified

143 print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
144
145def demo(fun=sun):
146 start()
147 for i in range(8):
148 a = clock()
149 test(300, i, fun)
150 b = clock()
151 t = b - a
152 if t < 2:
153 sleep(2 - t)
154
155def main():
156 #title("Penrose-tiling with kites and darts.")

Callers 1

mainFunction · 0.70

Calls 3

sleepFunction · 0.85
startFunction · 0.70
testFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…