Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Perhaps an object can set an attribute, __infinite_iterator__ = True. That would provide an unequivocal way to communicate to consumer code that the producer is known to generate a non-terminating stream. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33939> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com