MCPcopy Create free account
hub / github.com/dabeaz-course/practical-python / __init__

Method __init__

Work/Data/stocksim.py:124–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122
123class MarketSimulator(object):
124 def __init__(self):
125 self.stocks = { }
126 self.prices = { }
127 self.time = 0
128 self.observers = []
129 def register(self,observer):
130 self.observers.append(observer)
131

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected