[Python-ideas] Introduce collections.Reiterable

Joshua Landau joshua at landau.ws
Thu Sep 19 13:37:17 CEST 2013

On 19 September 2013 11:28, Terry Reedy <tjreedy at udel.edu> wrote:
> On 9/19/2013 4:32 AM, Nick Coghlan wrote:
>> (Grr, why is Google Groups so broken? :P)
>> My question would be, does the new class add anything that isn't
>> already covered by:
>>      isinstance(c, Iterable) and not isinstance(c, Iterator)
> Not everything in that category is necessarily re-iterable.

I cannot think of a non-pathological case where it is not; if it is
not re-iterable it should be changed to an iterator if it isn't

> Or if it is serially reiterable, it may not be parallel iterable, as needed
> for nested loops.

What do you mean?

More information about the Python-ideas mailing list