[Python-ideas] Introduce collections.Reiterable

Neil Girdhar mistersheik at gmail.com
Fri Sep 20 23:56:01 CEST 2013


On Fri, Sep 20, 2013 at 5:48 PM, Raymond Hettinger <
raymond.hettinger at gmail.com> wrote:

>
> On Sep 20, 2013, at 2:15 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>
> . The glossary might say that the older __getitem__ protocol is
> semi-deprecated (it is no longer used directly) but is adapted for back
> compatibility.
>
>
> It is NOT deprecated.   People use and rely on this behavior.  It is a
> guaranteed behavior.  Please don't use the glossary as a place to introduce
> changes to the language.
>

Just curious, but who uses __getitem__ to implement an iterable that's not
a sequence?

>
>
> Raymond
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-ideas/OumiLGDwRWA/unsubscribe.
> 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...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130920/99baf342/attachment.html>


More information about the Python-ideas mailing list