In the "where" section, see your questions on line 391 in Object / floatobject.c in the Python 2.7.3 source tree. A brief discussion is given of the behavior of NaN = NaN followed by implementation.
For other cases that exhibit similar behavior, this is certainly possible. However, I did not conduct an exhaustive search for libraries, so I can not give a definitive answer.
John percival hackworth
source share