Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
main
Function · 0.95
Calls
1
init
Method · 0.45
Tested by
no test coverage detected