Python dictionaries and floating point NaNs as keys
Like Go, Python’s floating point numbers support NaNs with the usual IEEE-754 semantics, including not comparing equal to each other. Since Python will conveniently produce them for us, we can easily demonstrate this:
Read more »