summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-02-23 22:57:58 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-02-23 22:57:58 (GMT)
commitbe0698b1ad096d8bd6564fa06486f2fcea47cac9 (patch)
tree892dc44548a60c7a3d457b8f44e9cd4cd35024b3 /Doc
parent5117b0b0dc9c28d158c9f46bca0965ee00ac98e7 (diff)
downloadcpython-be0698b1ad096d8bd6564fa06486f2fcea47cac9.zip
cpython-be0698b1ad096d8bd6564fa06486f2fcea47cac9.tar.gz
cpython-be0698b1ad096d8bd6564fa06486f2fcea47cac9.tar.bz2
Merged revisions 78384 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78384 | dirkjan.ochtman | 2010-02-23 16:09:52 -0500 (Tue, 23 Feb 2010) | 4 lines Fix #1537721: add writeheader() method to csv.DictWriter. Reviewed by skip.montanaro and thomas.wouters. ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/csv.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 510d35a..502d934 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -392,6 +392,16 @@ Writer objects have the following public attribute:
A read-only description of the dialect in use by the writer.
+DictWriter objects have the following public method:
+
+
+.. method:: DictWriter.writeheader()
+
+ Write a row with the field names (as specified in the constructor).
+
+ .. versionadded:: 2.7
+
+
.. _csv-examples:
Examples