File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ The :mod:`csv` module defines the following functions:
56
56
.. function :: reader(csvfile, dialect='excel', **fmtparams)
57
57
58
58
Return a reader object which will iterate over lines in the given *csvfile *.
59
- *csvfile * can be any object which supports the :term: `iterator ` protocol and returns a
60
- string each time its :meth: `!__next__ ` method is called --- :term: `file objects
59
+ *csvfile * can be any object which supports the :term: `iterable ` protocol and returns an
60
+ iterator that returns a string each time its :term`iterator`'s :meth: `!__next__ ` method
61
+ is called when its :meth: `!__iter__ ` method is called --- :term: `file objects
61
62
<file object> ` and list objects are both suitable. If *csvfile * is a file object,
62
63
it should be opened with ``newline='' ``. [1 ]_ An optional
63
64
*dialect * parameter can be given which is used to define a set of parameters
@@ -416,7 +417,7 @@ Reader objects have the following public attributes:
416
417
417
418
.. attribute :: csvreader.line_num
418
419
419
- The number of lines read from the source iterator . This is not the same as the
420
+ The number of lines read from the source iterable . This is not the same as the
420
421
number of records returned, as records can span multiple lines.
421
422
422
423
You can’t perform that action at this time.
0 commit comments