The documentation for the csv reader objects next() method is incorrect. It states '
csvreader.next()
Return the next row of the reader’s iterable object as a list, parsed according to the current dialect.'
Either the documentation for DictReader objects needs to be be made separate from normal reader objects, or this needs to be amended to say '
csvreader.next()
Return the next row of the reader’s iterable object as a list (if reader) or dict (if DictReader), parsed according to the current dialect.
'
I observed this in the 2.7 online docs, found it to be the case in the 3.4 online docs as well, and haven't checked other versions but assume it's the case. |