Consume an iterable

Peter Otten __peter__ at web.de
Sun Jan 24 12:24:49 EST 2010


Jan Kaliszewski wrote:

> But the corret results even more distinctly support my thesis -- that for
> n=None using n=sys.maxint (consume3) is noticeably faster than 0-maxlen
> deque (consume1 and consume2):

That advantage may not survive the next release:

http://svn.python.org/view/python/trunk/Modules/_collectionsmodule.c?r1=68145&r2=70296&pathrev=70296

Peter



More information about the Python-list mailing list