diff options
author | Amit Kumar <aktech@users.noreply.github.com> | 2017-05-23 05:09:42 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-05-23 05:09:42 (GMT) |
commit | d618c8c6d31b9b288f8a070417683974eb98e3ba (patch) | |
tree | 9a0087efc136a1e19f887fc0a20305ac6a78faf2 | |
parent | 6b4be195cd8868b76eb6fbe166acc39beee8ce36 (diff) | |
download | cpython-d618c8c6d31b9b288f8a070417683974eb98e3ba.zip cpython-d618c8c6d31b9b288f8a070417683974eb98e3ba.tar.gz cpython-d618c8c6d31b9b288f8a070417683974eb98e3ba.tar.bz2 |
bpo-21056: Document return type of next method of csv reader (#146)
-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: |