[Python-Dev] decimal.py: == and != comparisons involving NaNs (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Mon Nov 9 14:29:16 CET 2009


Stefan Krah <stefan-usenet bytereef.org> writes:

I guess my point is that NaNs in lists and dicts are broken in so many ways that it might be good to discourage this use. (And get the added benefit of safer mathematical behavior for == and !=.)

Giving users seemingly random and unexplainable exceptions would not be a good way to discourage it, though.



More information about the Python-Dev mailing list