On Mon, Apr 20, 2009 at 11:42 PM, Wes McKinney <wesmck...@gmail.com> wrote:
> I assume that, because NaN != NaN, even though both have the same hash value
> (hash(NaN) == -32768), that Python treats any NaN double as a distinct key
> in a dictionary.

I think that strictly speaking, nan should not be hashable because of
nan != nan. But since that's not an error in python, I am not sure we
should do something about it.

David
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to