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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to