Message135055
>>> nan = float('nan')
>>> min(nan, 5)
nan
>>> min(5, nan)
5
Good arguments can be made in favor of either result, but different value for min(x, y) depending on the order of arguments can hardly be justified.
"In the face of ambiguity, refuse the temptation to guess" suggests that min/max with NaN should be an error. See also issue 11949. |
|
Date |
User |
Action |
Args |
2011-05-03 18:31:29 | belopolsky | set | recipients:
+ belopolsky, mark.dickinson, alex, daniel.urban |
2011-05-03 18:31:28 | belopolsky | set | messageid: <1304447488.99.0.598234391452.issue11986@psf.upfronthosting.co.za> |
2011-05-03 18:31:28 | belopolsky | link | issue11986 messages |
2011-05-03 18:31:28 | belopolsky | create | |
|