Method
__init__
(self, f, fieldnames=None, restkey=None, restval=None,
dialect="excel", *args, **kwds)
Source from the content-addressed store, hash-verified
| 79 | |
| 80 | class DictReader: |
| 81 | def __init__(self, f, fieldnames=None, restkey=None, restval=None, |
| 82 | dialect="excel", *args, **kwds): |
| 83 | self._fieldnames = fieldnames # list of keys for the dict |
| 84 | self.restkey = restkey # key to catch long rows |
| 85 | self.restval = restval # default value for short rows |
| 86 | self.reader = reader(f, dialect, *args, **kwds) |
| 87 | self.dialect = dialect |
| 88 | self.line_num = 0 |
| 89 | |
| 90 | def __iter__(self): |
| 91 | return self |
Callers
nothing calls this directly
Tested by
no test coverage detected