summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-11-09 14:22:36 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-11-09 14:22:36 (GMT)
commiteea8533bd21eeea759ae0750dc3124f6b2e1687f (patch)
treed5481a1f572c2862a62fd5756cb381acc6e26dfd /Doc
parentdc326b77e8647f5cb921aaa6e0cacef260b2fbd2 (diff)
downloadcpython-eea8533bd21eeea759ae0750dc3124f6b2e1687f.zip
cpython-eea8533bd21eeea759ae0750dc3124f6b2e1687f.tar.gz
cpython-eea8533bd21eeea759ae0750dc3124f6b2e1687f.tar.bz2
Merged revisions 76165 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76165 | r.david.murray | 2009-11-09 09:21:38 -0500 (Mon, 09 Nov 2009) | 9 lines 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. ........ ................
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/csv.rst13
1 files changed, 6 insertions, 7 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 7bbb7c1..510d35a 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -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
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
- *csvfile* will be used as the fieldnames. If the row read has fewer fields than
- the fieldnames sequence, the value of *restval* will be used as the default
- value. If the row read has more fields than the fieldnames sequence, the
- remaining data is added as a sequence keyed by the value of *restkey*. If the
- row read has fewer fields than the fieldnames sequence, the remaining keys take
- the value of the optional *restval* parameter. Any other optional or keyword
- arguments are passed to the underlying :class:`reader` instance.
+ *csvfile* will be used as the fieldnames. If the row read has more fields
+ than the fieldnames sequence, the remaining data is added as a sequence
+ keyed by the value of *restkey*. If the row read has fewer fields than the
+ fieldnames sequence, the remaining keys take the value of the optional
+ *restval* parameter. Any other optional or keyword arguments are passed to
+ the underlying :class:`reader` instance.
.. class:: DictWriter(csvfile, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)