[Python-ideas] Introduce collections.Reiterable
Masklinn
masklinn at masklinn.net
Thu Sep 19 11:38:35 CEST 2013
On 2013-09-19, at 11:23 , Neil Girdhar wrote:
> No, not things which are iterable but not iterators, things which are
> *reiterable* rather than merely iterable. That is, things that can be
> iterated multiple times without the generated elements disappearing.
The point Nick is trying to bring across is that "iterable but not an
iterator" seems to do *exactly* what you ask for: you can get multiple
independent iterators out of it, and thus you can iterate it multiple
times without the generated elements disappearing.
More information about the Python-ideas
mailing list