]> granicus.if.org Git - python/commitdiff
[3.5] bpo-21056: Document return type of next method of csv reader (GH-146) (#1750)
authorMariatta <Mariatta@users.noreply.github.com>
Tue, 23 May 2017 05:27:10 +0000 (22:27 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Tue, 23 May 2017 05:27:10 +0000 (22:27 -0700)
(cherry picked from commit d618c8c6d31b9b288f8a070417683974eb98e3ba)

Doc/library/csv.rst

index 7fb4fc8256aca3b5a4c301534f1864c67d33ee26..21353e35ad7dd2b45a95f6f06a8c62ff0fcd4093 100644 (file)
@@ -390,8 +390,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: