-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
max(a,b) sometimes depends on order of args #117200
Comments
IEEE-754 says the opposite:
|
Looks like a duplicate of #88536.
|
yes, but this is not obvious to each python user. and python is intended to be as friendly or comfortable or easy to understand as possible. No hint in documentation? |
There's already a hint in documentation: https://docs.python.org/3/library/math.html#math.nan:
|
I mean a hint in max(), min() docu. As not everybody ready everything. I assume many users dont even know about NAN. |
This behaviour currently is under discussion, please read the issue found by Hugo. |
Bug report
Bug description:
As this is not obvious behaviour (and python wants to be easy to understand), I suggest to mention this here:
https://docs.python.org/3/library/functions.html#max
I'm not sure about considering this a bug, but is is on the edge between bug and confusing behaviour.
CPython versions tested on:
3.11
Operating systems tested on:
Linux, Windows
The text was updated successfully, but these errors were encountered: