[Python-checkins] r76163 - python/trunk/Doc/library/csv.rst
r.david.murray
python-checkins at python.org
Mon Nov 9 15:18:14 CET 2009
Author: r.david.murray
Date: Mon Nov 9 15:18:14 2009
New Revision: 76163
Log:
Remove redundant sentence.
Modified:
python/trunk/Doc/library/csv.rst
Modified: python/trunk/Doc/library/csv.rst
==============================================================================
--- python/trunk/Doc/library/csv.rst (original)
+++ python/trunk/Doc/library/csv.rst Mon Nov 9 15:18:14 2009
@@ -167,13 +167,12 @@
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]]]])
More information about the Python-checkins
mailing list