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

Method __init__

Solutions/3_8/reader.py:23–24  ·  view source on GitHub ↗
(self, types)

Source from the content-addressed store, hash-verified

21
22class DictCSVParser(CSVParser):
23 def __init__(self, types):
24 self.types = types
25
26 def make_record(self, headers, row):
27 return { name: func(val) for name, func, val in zip(headers, self.types, row) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected