MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/csv.py:81–88  ·  view source on GitHub ↗
(self, f, fieldnames=None, restkey=None, restval=None,
                 dialect="excel", *args, **kwds)

Source from the content-addressed store, hash-verified

79
80class 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

Calls 1

readerFunction · 0.85

Tested by

no test coverage detected