Lines Matching refs:fieldnames
74 def __init__(self, f, fieldnames=None, restkey=None, restval=None, argument
76 self._fieldnames = fieldnames # list of keys for the dict
87 def fieldnames(self): member in DictReader
100 @fieldnames.setter
101 def fieldnames(self, value): member in DictReader
107 self.fieldnames
116 d = dict(zip(self.fieldnames, row))
117 lf = len(self.fieldnames)
122 for key in self.fieldnames[lr:]:
128 def __init__(self, f, fieldnames, restval="", extrasaction="raise", argument
130 self.fieldnames = fieldnames # list of keys for the dict
140 header = dict(zip(self.fieldnames, self.fieldnames))
145 wrong_fields = [k for k in rowdict if k not in self.fieldnames]
149 return [rowdict.get(key, self.restval) for key in self.fieldnames]