Serhiy Storchaka <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue36923>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com