[Python-ideas] An ABC representing "Iterable, Sized, Container"

Guido van Rossum guido at python.org
Thu Jul 21 20:29:08 EDT 2016


On Thu, Jul 21, 2016 at 5:05 PM, Thomas Nyberg <tomuxiong at gmail.com> wrote:
> On 07/21/2016 07:58 PM, Guido van Rossum wrote:
>>
>> But there's already Container which means "supports __contains__".
>>
>> Collection might cause confusing with the module name collections.
>>
>> Otherwise either would be a good candidate...
>
>
> Coming out of lurking...
>
> StaticIterable? ConstIterable? Something to indicate that if you just
> iterate over it you keep getting the same thing?

Neither "static" nor "const" convey the right meaning.

> Personally I think Reiterable is about as clear as it ever will be...

Yeah, I think that's my conclusion as well.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-ideas mailing list