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

Method __init__

Data/stocksim.py:169–170  ·  view source on GitHub ↗
(self,filename)

Source from the content-addressed store, hash-verified

167
168class LogPrinter(object):
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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected