[Python-ideas] checking for identity before comparing built-in objects

Steven D'Aprano steve at pearwood.info
Tue Oct 9 18:11:42 CEST 2012


On 10/10/12 02:54, Ethan Furman wrote:

> Or, to look at it another way, surely somewhere out in the Real
>World (tm) it is the case that two NaNs are indeed equal.

By definition, no.


-- 
Steven



More information about the Python-ideas mailing list