Skip to content

Commit

Permalink
bpo-21056: Document return type of next method of csv reader (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech authored and Mariatta committed May 23, 2017
1 parent 6b4be19 commit d618c8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Doc/library/csv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,10 @@ Reader objects (:class:`DictReader` instances and objects returned by the

.. method:: csvreader.__next__()

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


Reader objects have the following public attributes:
Expand Down

0 comments on commit d618c8c

Please sign in to comment.