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

Function main

Lib/turtledemo/forest.py:80–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79# Hier 3 Baumgeneratoren:
80def main():
81 p = Turtle()
82 p.ht()
83 tracer(75,0)
84 u = doit1(6, Turtle(undobuffersize=1))
85 s = doit2(7, Turtle(undobuffersize=1))
86 t = doit3(5, Turtle(undobuffersize=1))
87 a = clock()
88 while True:
89 done = 0
90 for b in u,s,t:
91 try:
92 b.__next__()
93 except:
94 done += 1
95 if done == 3:
96 break
97
98 tracer(1,10)
99 b = clock()
100 return "runtime: %.2f sec." % (b-a)
101
102if __name__ == '__main__':
103 main()

Callers 1

forest.pyFile · 0.70

Calls 6

TurtleClass · 0.90
tracerFunction · 0.85
doit1Function · 0.85
doit2Function · 0.85
doit3Function · 0.85
__next__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…