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 methane
Recipients docs@python, methane
Date 2010-11-13.19:18:27
SpamBayes Score 0.013833514
Marked as misclassified No
Message-id <1289675908.98.0.73683654885.issue10410@psf.upfronthosting.co.za>
In-reply-to
Content
In http://docs.python.org/release/2.6.6/glossary.html, "iterable" is described as
"A container object capable of returning its members one at a time."
Is it correct? Is stream object like file a container type?

Container ABC requires only "__contains__" abstract method. I think file
is iterable but is not container.

Likewise, "and objects of any classes you define with an __iter__() or
__getitem__() method." is wrong because __getitem__ method is not relate to
iterable.
History
Date User Action Args
2010-11-13 19:18:29methanesetrecipients: + methane, docs@python
2010-11-13 19:18:28methanesetmessageid: <1289675908.98.0.73683654885.issue10410@psf.upfronthosting.co.za>
2010-11-13 19:18:27methanelinkissue10410 messages
2010-11-13 19:18:27methanecreate