Fix #1537721: add writeheader() method to csv.DictWriter.
Reviewed by skip.montanaro and thomas.wouters.
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index 407efd0..c688da8 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -424,6 +424,16 @@
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