[Python-checkins] bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Miss Islington (bot)
webhook-mailer at python.org
Sat Jun 2 11:41:29 EDT 2018
https://github.com/python/cpython/commit/af3685963652721269ca0196f9f7fc08d3e830b7
commit: af3685963652721269ca0196f9f7fc08d3e830b7
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-02T08:41:26-07:00
summary:
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)
Co-authored-by: Zackery Spytz <zspytz at gmail.com>
files:
M Doc/library/csv.rst
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index fedd370cf1cf..ad6b716e20a3 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -453,8 +453,9 @@ read CSV files (assuming they support complex numbers at all).
.. method:: csvwriter.writerows(rows)
- Write all the *rows* parameters (a list of *row* objects as described above) to
- the writer's file object, formatted according to the current dialect.
+ Write all elements in *rows* (an iterable of *row* objects as described
+ above) to the writer's file object, formatted according to the current
+ dialect.
Writer objects have the following public attribute:
More information about the Python-checkins
mailing list