diff options
author | Georg Brandl <georg@python.org> | 2009-04-01 15:53:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-01 15:53:15 (GMT) |
commit | c7485064278efb9231df982866ec2c0051814c74 (patch) | |
tree | 55224928d391f5056cb71606e31c75f9ba6e269b /Doc | |
parent | 9ae3640b0e26819a8df2ce8ba4541f94dea92d5c (diff) | |
download | cpython-c7485064278efb9231df982866ec2c0051814c74.zip cpython-c7485064278efb9231df982866ec2c0051814c74.tar.gz cpython-c7485064278efb9231df982866ec2c0051814c74.tar.bz2 |
#5636: fix next -> __next__ in csv reader docs.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/csv.rst | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 80ddaad..46ef246 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -351,14 +351,13 @@ Reader Objects Reader objects (:class:`DictReader` instances and objects returned by the :func:`reader` function) have the following public methods: - -.. method:: csvreader.next() +.. method:: csvreader.__next__() Return the next row of the reader's iterable object as a list, parsed according - to the current dialect. + to the current dialect. Usually you should call this as ``next(reader)``. -Reader objects have the following public attributes: +Reader objects have the following public attributes: .. attribute:: csvreader.dialect @@ -371,10 +370,8 @@ Reader objects have the following public attributes: number of records returned, as records can span multiple lines. - DictReader objects have the following public attribute: - .. attribute:: csvreader.fieldnames If not passed as a parameter when creating the object, this attribute is |