[Python-3000] Fwd: Re: rename it.next() to it.next(), add a next() built-in (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 6 00:44:46 CET 2007


Raymond Hettinger wrote:

Do you expect that next(someiterator) will be just as fast and calling a boundmethod (such as: counter=itertools.counter(1); counter())?

If you snarf a local reference to the next() function, I expect it will be comparable in the case where the iterator is implemented in C, and probably also when it's implemented by a Python generator.

-- Greg



More information about the Python-3000 mailing list