diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-05-23 05:27:02 (GMT) |
---|---|---|
committer | Ćukasz Langa <lukasz@langa.pl> | 2017-05-23 05:27:02 (GMT) |
commit | 6ef0882303cff24c58785bb1082250088266886d (patch) | |
tree | 4364de870aecb1308c226920f23a2c3216e5dd12 /Doc/library/csv.rst | |
parent | 07a40a16238995e2b6b9ab1d5fc3a30bcd63d955 (diff) | |
download | cpython-6ef0882303cff24c58785bb1082250088266886d.zip cpython-6ef0882303cff24c58785bb1082250088266886d.tar.gz cpython-6ef0882303cff24c58785bb1082250088266886d.tar.bz2 |
[3.6] bpo-21056: Document return type of next method of csv reader (GH-146) (#1749)
(cherry picked from commit d618c8c6d31b9b288f8a070417683974eb98e3ba)
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r-- | Doc/library/csv.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 52a8a31..43714f7 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -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: |