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

Class GravSys

Lib/turtledemo/planet_and_moon.py:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19G = 8
20
21class GravSys(object):
22 def __init__(self):
23 self.planets = []
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
32 for p in self.planets:
33 p.step()
34
35class Star(Turtle):
36 def __init__(self, m, x, v, gravSys, shape):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…