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


Groups > comp.lang.python > #74190

Re: NaN comparisons - Call For Anecdotes

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: NaN comparisons - Call For Anecdotes
Date Tue, 08 Jul 2014 20:36:40 +0300
Organization A noiseless patient Spider
Lines 21
Message-ID <87wqbn92hj.fsf@elektro.pacujo.net> (permalink)
References <53BC05FB.4050707@jmunch.dk> <mailman.11644.1404840246.18130.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="3991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y9/quHoX8gW2LhfWH35gI"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock sha1:RvMTv+53g0r+y9e9d1zSO/9XG+Y= sha1:wpJBWAc5txO8AIqNUy/MXiSVBD0=
Xref csiph.com comp.lang.python:74190

Show key headers only | View raw


Skip Montanaro <skip@pobox.com>:

> 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.

Do the scientific computers mind:

    >>> 1 / 0
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ZeroDivisionError: division by zero

or would they prefer their fancy linear-algebraic computation to just
forge on?


Marko

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


Thread

Re: NaN comparisons - Call For Anecdotes Skip Montanaro <skip@pobox.com> - 2014-07-08 12:23 -0500
  Re: NaN comparisons - Call For Anecdotes Marko Rauhamaa <marko@pacujo.net> - 2014-07-08 20:36 +0300
    Re: NaN comparisons - Call For Anecdotes Skip Montanaro <skip@pobox.com> - 2014-07-08 12:49 -0500

csiph-web