When is min(a, b) != min(b, a)?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Jan 21 17:17:11 EST 2008


On Mon, 21 Jan 2008 18:00:05 +0000, Pete Forman wrote:

> If NaNs in your data are important then you must take care in explicit
> and implicit comparisons to consider unordered results.

And even if they're not important, beware of bugs from failing to 
consider unordered results due to unexpected NaNs.



-- 
Steven



More information about the Python-list mailing list