Guido van Rossum added the comment: ReIterable and Collection are different concepts. - ReIterable just implements __iter__ but promises certain semantics. - Collection implements __iter__, __contains__ and __len__.
If we had ReIterable I would probably decree that Collection inherits from it (practicality beats purity). But I don't think ReIterable by itself would do much good; apart from a few "show-off" hacks, any reasonable ReIterable would also be able to implement __contains__ and __len__ easily. And I would certainly call range() a Collection. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27598> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com