[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
- Previous message: [Python-3000] Fwd: Re: rename it.next() to it.__next__(), add a next() built-in
- Next message: [Python-3000] Fwd: Re: rename it.next() to it.__next__(), add a next() built-in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Fwd: Re: rename it.next() to it.__next__(), add a next() built-in
- Next message: [Python-3000] Fwd: Re: rename it.next() to it.__next__(), add a next() built-in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]