Skip to content

Commit 32dcf42

Browse files
Mariattaambv
authored andcommitted
[3.5] bpo-21056: Document return type of next method of csv reader (GH-146) (#1750)
(cherry picked from commit d618c8c)
1 parent 1d359b8 commit 32dcf42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/csv.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ Reader objects (:class:`DictReader` instances and objects returned by the
390390

391391
.. method:: csvreader.__next__()
392392

393-
Return the next row of the reader's iterable object as a list, parsed according
394-
to the current dialect. Usually you should call this as ``next(reader)``.
393+
Return the next row of the reader's iterable object as a list (if the object
394+
was returned from :func:`reader`) or a dict (if it is a :class:`DictReader`
395+
instance), parsed according to the current dialect. Usually you should call
396+
this as ``next(reader)``.
395397

396398

397399
Reader objects have the following public attributes:

0 commit comments

Comments
 (0)