[Python-ideas] An exhaust() function for iterators

Neil Girdhar mistersheik at gmail.com
Fri Oct 11 20:29:43 CEST 2013


This was also my thought.

On Sunday, September 29, 2013 4:42:20 PM UTC-4, Serhiy Storchaka wrote:
>
> 29.09.13 07:06, Clay Sweetser написав(ла):
> > I would like to propose that this function, or one very similar to it,
> > be added to the standard library, either in the itertools module, or
> > the standard namespace.
> > If nothing else, doing so would at least give a single *obvious* way
> > to exhaust an iterator, instead of the several miscellaneous methods
> > available.
>
> I prefer optimize the for loop so that it will be most efficient way (it 
> is already most obvious way).
>
> _______________________________________________
> Python-ideas mailing list
> Python... at python.org <javascript:>
> https://mail.python.org/mailman/listinfo/python-ideas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131011/4033b0b9/attachment.html>


More information about the Python-ideas mailing list