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

Guido van Rossum guido at python.org
Thu Jul 21 19:38:25 EDT 2016


Ah. Well, there's no official term "reiterable" AFAIK. This confusion
also lies at the root of the issues I started with. So let's try to
find a new term!

On Thu, Jul 21, 2016 at 3:42 PM, Michael Selik <michael.selik at gmail.com> wrote:
>
>
> On Thu, Jul 21, 2016 at 5:29 PM Guido van Rossum <guido at python.org> wrote:
>>
>> On Thu, Jul 21, 2016 at 2:14 PM, Michael Selik <michael.selik at gmail.com>
>> wrote:
>> > On Thu, Jul 21, 2016 at 4:43 PM Guido van Rossum <guido at python.org>
>> > wrote:
>>
>> >> (Another useful concept is "reiterable", i.e. an Iterable that can be
>> >> iterated over multiple times -- there's no ABC to indicate this
>> >> concept. Sequence, Set and Mapping all support this concept, Iterator
>> >> does not include it, but Iterable is wishy-washy.)
>> >
>> > "Reiterable" seems to cause vocabulary confusion regularly on this list.
>>
>> What kind of confusion?
>
>
> Someone accidentally says iterable when they mean reiterable, and then
> there's a handful of emails pointing that out and arguing about what the
> right word should be to describe something (like range) that can be iterated
> over more than once, but isn't necessarily a sequence, set, or mapping.



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


More information about the Python-ideas mailing list