Serhiy Storchaka <[email protected]> added the comment:
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.
----------
nosy: +serhiy.storchaka
priority: normal -> low
versions: +Python 3.10 -Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42563>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com