[Python-Dev] Why is nan != nan? (original) (raw)

Raymond Hettinger raymond.hettinger at gmail.com
Sat Mar 27 00:16:36 CET 2010


On Mar 26, 2010, at 2:16 PM, Xavier Morel wrote:

How about raising an exception instead of creating nans in the first place, except maybe within specific contexts (so that the IEEE-754 minded can get their nans working as they currently do)?

-1

The numeric community uses NaNs as placeholders in vectorized calculations. People do use them and there's no point in breaking their code.

Of the ideas I've seen in this thread, only two look reasonable:

I support either of those options.

Raymond

-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100326/07695d85/attachment-0001.html>



More information about the Python-Dev mailing list