[Python-ideas] An exhaust() function for iterators
Serhiy Storchaka
storchaka at gmail.com
Fri Oct 11 21:02:42 CEST 2013
11.10.13 21:51, David Mertz написав(ла):
> It is hard to imagine that doing this:
>
> for _ in side_effect_iter: pass
>
> Could EVER realistically spend a significant share of its time in the
> loop code.
When I written a test for tee() (issue #13454) I needed very fast
iterator exhausting. There were one or two other similar cases.
More information about the Python-ideas
mailing list