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

Method update

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

csv_recordFunction · 0.85

Tested by

no test coverage detected