]> granicus.if.org Git - python/commitdiff
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 2 Jun 2018 15:40:00 +0000 (08:40 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Jun 2018 15:40:00 +0000 (08:40 -0700)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/library/csv.rst

index e1290d4c9b5c83bd660013c7fcc6d6f39215e42d..08b8edc5227eb3a51a20ad58b3c4971d4a72983d 100644 (file)
@@ -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: