On Thu, Apr 28, 2011 at 1:40 AM, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: .. > The Pythonic thing to do (in the Python 3 world at least) would > be to regard NaNs as non-comparable and raise an exception.
As I mentioned in a previous post, I agree in case of <, <=, >, or >= comparisons, but == and != are a harder case because you don't want, for example: >>> [1,2,float('nan'),3].index(3) 3 to raise an exception. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com