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

Class DictCSVParser

Solutions/5_2/reader.py:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 raise NotImplementedError()
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) }
35
36class InstanceCSVParser(CSVParser):
37 def __init__(self, cls):

Callers 1

read_csv_as_dictsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected