This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Zero, docs@python, r.david.murray, rhettinger, terry.reedy, veky
Date 2017-09-24.19:09:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506280189.24.0.680688731125.issue18558@psf.upfronthosting.co.za>
In-reply-to
Content
I'll follow David Murray's suggestion here.  The glossary definition of iterable is already very good, it just needs to clarify that the __getitem__() method needs to implement sequence semantics.  Anything further is beyond the scope of a glossary entry.

Also, I'll amend the docs on collections.abc.Iterable() to be more specific about what it is does and doesn't recognize.

FWIW, the topic is also discussed in other places:

* https://docs.python.org/3/library/functions.html#iter
* https://docs.python.org/3/reference/datamodel.html#object.__getitem__
* https://docs.python.org/3/reference/datamodel.html#object.__iter__
History
Date User Action Args
2017-09-24 19:09:49rhettingersetrecipients: + rhettinger, terry.reedy, r.david.murray, Zero, docs@python, veky
2017-09-24 19:09:49rhettingersetmessageid: <1506280189.24.0.680688731125.issue18558@psf.upfronthosting.co.za>
2017-09-24 19:09:49rhettingerlinkissue18558 messages
2017-09-24 19:09:49rhettingercreate