]> granicus.if.org Git - python/commitdiff
bpo-21056: Document return type of next method of csv reader (#146)
authorAmit Kumar <aktech@users.noreply.github.com>
Tue, 23 May 2017 05:09:42 +0000 (10:39 +0530)
committerMariatta <Mariatta@users.noreply.github.com>
Tue, 23 May 2017 05:09:42 +0000 (22:09 -0700)
Doc/library/csv.rst

index 52a8a310ec9d623d7911f592849384c55a18185d..43714f7479283d63a07318af65244f5ecdd01a85 100644 (file)
@@ -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: