diff options
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r-- | Doc/library/csv.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 510d35a4000..502d9349dbf 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 |