Bar Harel added the comment: I still believe "Reiterable" better demonstrates the concept.
When you request a Reiterable as a function parameter or assert if something is a Reiterable the other side knows exactly what you mean. A "Collection" is way more ambiguous - if you create an object that acts like range() but you can cycle over it more than once I wouldn't exactly call it a collection. I would though call it a Reiterable and it would be clear for any Python programmer familiar with the concept of iterators. I believe this is a funny case in which the naming is more important than the implementation as it will turn into a term or concept that will be further used in many places to come. ---------- nosy: +bar.harel _______________________________________ 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