Method: csv.DictReader.__init__
Calls: 134, Exceptions: 0, Paths: 1Back
Path 1: 134 calls (1.0)
TextIOWrapper (128) ['FirstName,LastName', 'Eric,Idle', 'Graham,Chapman,Over1,Over2', '', 'Under1', 'John,Cleese'] (2) ['Eric,Idle', 'Graham,Chapman,O...
None (125) ['1', '2', '3', '4', '5', '6'] (3) ['f1', 'f2', 'f3'] (2) ['f1', 'f2'] (2) ['fname', 'lname'] (1) ['i1', 'float', 'i2', 's1', 's2'] (1)
None (131) '_rest' (2) 'OtherInfo' (1)
None (133) 'DEFAULT' (1)
'excel' (134)
() (134)
{} (133) {'delimiter': ';'} (1)
1def __init__(self, f, fieldnames=None, restkey=None, restval=None,
2 dialect="excel", *args, **kwds):
3 self._fieldnames = fieldnames # list of keys for the dict
4 self.restkey = restkey # key to catch long rows
5 self.restval = restval # default value for short rows
6 self.reader = reader(f, dialect, *args, **kwds)
7 self.dialect = dialect
8 self.line_num = 0