[Python-ideas] Introduce collections.Reiterable
mistersheik at gmail.com
Thu Sep 19 11:40:26 CEST 2013
Yes, I see that now (with Antoine's code as well). Sorry that it wasn't
clear to me earlier.
On Thu, Sep 19, 2013 at 5:38 AM, Masklinn <masklinn at masklinn.net> wrote:
> 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.
> Python-ideas mailing list
> Python-ideas at python.org
> You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas