Method
__init__
(self, f, fieldnames=None, restkey=None, restval=None,
*args, **kwds)
Source from the content-addressed store, hash-verified
| 662 | |
| 663 | class DictReader(): |
| 664 | def __init__(self, f, fieldnames=None, restkey=None, restval=None, |
| 665 | *args, **kwds): |
| 666 | self._fieldnames = fieldnames # list of keys for the dict |
| 667 | self.restkey = restkey # key to catch long rows |
| 668 | self.restval = restval # default value for short rows |
| 669 | self.dialect = kwds.get('dialect', "excel") |
| 670 | self.reader = Reader(f, self.dialect, *args, **kwds) |
| 671 | self.line_num = 0 |
| 672 | |
| 673 | def __iter__(self): |
| 674 | return self |
Callers
nothing calls this directly
Tested by
no test coverage detected