Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74207 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2014-07-08 12:16 -0700 |
| Last post | 2014-07-08 12:16 -0700 |
| 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.
Re: NaN comparisons - Call For Anecdotes Ethan Furman <ethan@stoneleaf.us> - 2014-07-08 12:16 -0700
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2014-07-08 12:16 -0700 |
| Subject | Re: NaN comparisons - Call For Anecdotes |
| Message-ID | <mailman.11658.1404848493.18130.python-list@python.org> |
On 07/08/2014 12:04 PM, Anders J. Munch wrote:
> Ethan Furman skrev:
>
>> What exception? Apparently your claims about NaN in Python are all wrong -- have you been using a custom interpreter?
>> >>> float('inf') - float('inf')
>> nan
>
> If you deliberately try to manufacture NaN's, you can. I never said otherwise.
What you said is: "They just don't appear in normal computation, because the
interpreter raises an exception instead."
I just ran a calculation that created a NaN, the same as 4 - 3 creates a 1, and no exception was raised.
Do you have an example where one is?
--
~Ethan~
Back to top | Article view | comp.lang.python
csiph-web