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

Method __init__

Work/Data/stocksim.py:167–168  ·  view source on GitHub ↗
(self,filename)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected