Senthil Kumaran <sent...@uthcode.com> added the comment: On Sat, Jul 23, 2011 at 09:37:27AM +0000, Éric Araujo wrote: > I’ve had a look at the docstring and the reST docs, and they clearly > say that sequences are supported, not arbitrary iterables.
Yeah. At the first cut, when I saw the suggestion of iter(), I thought it was better, but looking at it again, we just need to test the sequence-ness. I would leave it as such with len() unless we come up with a case that it does not test the sequenceness completely. As Eric points out, changing it to iter may cause some side-effects (of exhaustion of the container) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12581> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com