There must be a better way

Terry Jan Reedy tjreedy at udel.edu
Sat Apr 20 21:07:23 EDT 2013


On 4/20/2013 8:34 PM, Tim Chase wrote:
> In 2.x, the csv.reader() class (and csv.DictReader() class) offered
> a .next() method that is absent in 3.x

In Py 3, .next was renamed to .__next__ for *all* iterators. The 
intention is that one iterate with for item in iterable or use builtin 
functions iter() and next().





More information about the Python-list mailing list