Message382469
This is because the code of the main() function is roughly equivalent to
result = next(iter)
for item in iter:
if item > result:
result = item
It can be changed to use "result < item" instead of "item > result", but it can has subtle differences in behavior. I am not sure what is better.
If we change it, it can only be in 3.10, because of the risk of affecting user code. |
|
Date |
User |
Action |
Args |
2020-12-04 07:53:27 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, nkobald |
2020-12-04 07:53:27 | serhiy.storchaka | set | messageid: <1607068407.9.0.52542072909.issue42563@roundup.psfhosted.org> |
2020-12-04 07:53:27 | serhiy.storchaka | link | issue42563 messages |
2020-12-04 07:53:27 | serhiy.storchaka | create | |
|