summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-06-02 15:02:16 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2018-06-02 15:02:16 (GMT)
commita801cf164be7c62b6a6dba47ff91d6c3edb67729 (patch)
tree38c6ee5ccc784699e5901d9acb49a745d6c83601
parent00818c8ffd657f9ec727e366bfffd9c2135fa5ab (diff)
downloadcpython-a801cf164be7c62b6a6dba47ff91d6c3edb67729.zip
cpython-a801cf164be7c62b6a6dba47ff91d6c3edb67729.tar.gz
cpython-a801cf164be7c62b6a6dba47ff91d6c3edb67729.tar.bz2
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
-rw-r--r--Doc/library/csv.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst
index e1290d4..08b8edc 100644
--- a/Doc/library/csv.rst
+++ b/Doc/library/csv.rst
@@ -452,8 +452,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: