MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / update

Method update

Data/stocksim.py:171–173  ·  view source on GitHub ↗
(self,record)

Source from the content-addressed store, hash-verified

169 def __init__(self,filename):
170 self.f = open(filename,"w")
171 def update(self,record):
172 self.f.write(csv_record(record)+"\n")
173 self.f.flush()
174
175m = MarketSimulator()
176m.add_history(history_file)

Callers

nothing calls this directly

Calls 1

csv_recordFunction · 0.85

Tested by

no test coverage detected