Lines Matching refs:fieldnames
81 def __init__(self, f, fieldnames=None, restkey=None, restval=None, argument
83 self._fieldnames = fieldnames # list of keys for the dict
94 def fieldnames(self): member in DictReader
103 @fieldnames.setter
104 def fieldnames(self, value): member in DictReader
110 self.fieldnames
119 d = dict(zip(self.fieldnames, row))
120 lf = len(self.fieldnames)
125 for key in self.fieldnames[lr:]:
131 def __init__(self, f, fieldnames, restval="", extrasaction="raise", argument
133 self.fieldnames = fieldnames # list of keys for the dict
142 header = dict(zip(self.fieldnames, self.fieldnames))
147 wrong_fields = rowdict.keys() - self.fieldnames
151 return (rowdict.get(key, self.restval) for key in self.fieldnames)