Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It will fail for infinite and very large iterables. It can cause performing unexpected operations. Examples: zip(itertools.count(), itertools.repeat(None)) zip(file1, file2) In general, the repr of the iterator should not change it state. But your proposition exhausts it. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36923> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com