Chris Angelico <ros...@gmail.com>:

> I'd say it would surprise people rather a lot if operations like dict
> insertion/lookup could trigger arithmetic exceptions. :)

That wouldn't trigger exceptions.

Dict operations do an "is" test before an "==" test. In fact, you
couldn't even use NaN as a dict key otherwise. Thus, dict operations
never test NaN == NaN.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to