Message135055
| Author |
belopolsky |
| Recipients |
alex, belopolsky, daniel.urban, mark.dickinson |
| Date |
2011年05月03日.18:31:28 |
| SpamBayes Score |
0.0022865157 |
| Marked as misclassified |
No |
| Message-id |
<1304447488.99.0.598234391452.issue11986@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> 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. |
|
History
|
|---|
| 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 |
|