Steven D'Aprano wrote: > Yes. Floating point NANs are required to compare unequal to all floats, > including themselves. It's part of the IEEE standard. As far as I remember that's not correct. It's just the way C has interpreted the standard and Python inherited the behavior. But you may proof me wrong on that. Mark, you are the expert on IEEE 754. Christian