Message342558
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. |
|
Date |
User |
Action |
Args |
2019-05-15 09:09:21 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, SilentGhost, AugPro |
2019-05-15 09:09:21 | serhiy.storchaka | set | messageid: <1557911361.07.0.184416186749.issue36923@roundup.psfhosted.org> |
2019-05-15 09:09:21 | serhiy.storchaka | link | issue36923 messages |
2019-05-15 09:09:20 | serhiy.storchaka | create | |
|