Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74203 > unrolled thread

Re: NaN comparisons - Call For Anecdotes

Started by"Anders J. Munch" <2014@jmunch.dk>
First post2014-07-08 21:06 +0200
Last post2014-07-08 21:06 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: NaN comparisons - Call For Anecdotes "Anders J. Munch" <2014@jmunch.dk> - 2014-07-08 21:06 +0200

#74203 — Re: NaN comparisons - Call For Anecdotes

From"Anders J. Munch" <2014@jmunch.dk>
Date2014-07-08 21:06 +0200
SubjectRe: NaN comparisons - Call For Anecdotes
Message-ID<mailman.11655.1404846372.18130.python-list@python.org>
Den 14-07-08 19:23, Skip Montanaro skrev:
>
> In addition to what others have written, I will add one thing. There
> are certainly situations where raising an exception is bad. Consider
> all the people in the scientific computing community doing fancy
> linear algebra sorts of things, often with missing data. They
> generally want NaN propagated and not have some long running
> calculation crash in the middle.

NaN!=NaN doesn't cause NaN's to propagate any more or any less. It simply causes 
a different branch of code to run, quite often the wrong one.

regards, Anders

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web