INADA Naoki <songofaca...@gmail.com> added the comment: >> Likewise, "and objects of any classes you define >> with an __iter__() or __getitem__() method." is >> wrong because __getitem__ method is not relate to >> iterable > > That wording is correct. Sequences are automatically > iterable even if they don't define __iter__. For example:
Wow, thank you! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10410> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com