Message121152
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. |
|
Date |
User |
Action |
Args |
2010-11-13 19:18:29 | methane | set | recipients:
+ methane, docs@python |
2010-11-13 19:18:28 | methane | set | messageid: <1289675908.98.0.73683654885.issue10410@psf.upfronthosting.co.za> |
2010-11-13 19:18:27 | methane | link | issue10410 messages |
2010-11-13 19:18:27 | methane | create | |
|