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

Method init

Lib/turtledemo/planet_and_moon.py:26–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.t = 0
25 self.dt = 0.01
26 def init(self):
27 for p in self.planets:
28 p.init()
29 def start(self):
30 for i in range(10000):
31 self.t += self.dt

Callers 1

mainFunction · 0.95

Calls 1

initMethod · 0.45

Tested by

no test coverage detected