mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Merged revisions 76163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76163 | r.david.murray | 2009-11-09 09:18:14 -0500 (Mon, 09 Nov 2009) | 2 lines Remove redundant sentence. ........
This commit is contained in:
parent
9b86cbcea8
commit
578ec9028e
1 changed files with 6 additions and 7 deletions
|
|
@ -141,13 +141,12 @@ The :mod:`csv` module defines the following classes:
|
||||||
Create an object which operates like a regular reader but maps the information
|
Create an object which operates like a regular reader but maps the information
|
||||||
read into a dict whose keys are given by the optional *fieldnames* parameter.
|
read into a dict whose keys are given by the optional *fieldnames* parameter.
|
||||||
If the *fieldnames* parameter is omitted, the values in the first row of the
|
If the *fieldnames* parameter is omitted, the values in the first row of the
|
||||||
*csvfile* will be used as the fieldnames. If the row read has fewer fields than
|
*csvfile* will be used as the fieldnames. If the row read has more fields
|
||||||
the fieldnames sequence, the value of *restval* will be used as the default
|
than the fieldnames sequence, the remaining data is added as a sequence
|
||||||
value. If the row read has more fields than the fieldnames sequence, the
|
keyed by the value of *restkey*. If the row read has fewer fields than the
|
||||||
remaining data is added as a sequence keyed by the value of *restkey*. If the
|
fieldnames sequence, the remaining keys take the value of the optional
|
||||||
row read has fewer fields than the fieldnames sequence, the remaining keys take
|
*restval* parameter. Any other optional or keyword arguments are passed to
|
||||||
the value of the optional *restval* parameter. Any other optional or keyword
|
the underlying :class:`reader` instance.
|
||||||
arguments are passed to the underlying :class:`reader` instance.
|
|
||||||
|
|
||||||
|
|
||||||
.. class:: DictWriter(csvfile, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)
|
.. class:: DictWriter(csvfile, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue