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


Groups > comp.lang.python > #74203

Re: NaN comparisons - Call For Anecdotes

Date 2014-07-08 21:06 +0200
From "Anders J. Munch" <2014@jmunch.dk>
Organization .
Subject Re: NaN comparisons - Call For Anecdotes
References <53BC05FB.4050707@jmunch.dk> <CANc-5UyhxwkRZ=_yKdYzdefN5BnoY1HgsXidk4xGQDVd+wUJ_A@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.11655.1404846372.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web