homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:29belopolskysetrecipients: + belopolsky, mark.dickinson, alex, daniel.urban
2011年05月03日 18:31:28belopolskysetmessageid: <1304447488.99.0.598234391452.issue11986@psf.upfronthosting.co.za>
2011年05月03日 18:31:28belopolskylinkissue11986 messages
2011年05月03日 18:31:28belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /