Consume an iterable

Jan Kaliszewski zuo at chopin.edu.pl
Sun Jan 24 13:01:59 EST 2010


24-01-2010, 18:24:49 Peter Otten <__peter__ at web.de> wrote:

>> 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

Nice. :)

*j

-- 
Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>



More information about the Python-list mailing list