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

Class LogPrinter

Work/Data/stocksim.py:166–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 print(csv_record(record))
165
166class LogPrinter(object):
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 1

stocksim.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected