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

Method __init__

Solutions/5_2/reader.py:30–31  ·  view source on GitHub ↗
(self, types)

Source from the content-addressed store, hash-verified

28
29class DictCSVParser(CSVParser):
30 def __init__(self, types):
31 self.types = types
32
33 def make_record(self, headers, row):
34 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