[Python-ideas] An ABC representing "Iterable, Sized, Container"
michael.selik at gmail.com
Thu Jul 21 18:42:30 EDT 2016
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>
> > On Thu, Jul 21, 2016 at 4:43 PM Guido van Rossum <guido at python.org>
> >> (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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas