Skip to content

Commit 949da9e

Browse files
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable. (cherry picked from commit a801cf1) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 57f1f5b commit 949da9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/csv.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,9 @@ read CSV files (assuming they support complex numbers at all).
452452

453453
.. method:: csvwriter.writerows(rows)
454454

455-
Write all the *rows* parameters (a list of *row* objects as described above) to
456-
the writer's file object, formatted according to the current dialect.
455+
Write all elements in *rows* (an iterable of *row* objects as described
456+
above) to the writer's file object, formatted according to the current
457+
dialect.
457458

458459
Writer objects have the following public attribute:
459460

0 commit comments

Comments
 (0)