From: Ned Batchelder <n...@nedbatchelder.com>
Date: Sun, 07 Oct 2012 22:35:17 -0400
Local: Sun, Oct 7 2012 10:35 pm
Subject: Re: [Python-ideas] checking for identity before comparing built-in objects
On 10/7/2012 9:51 PM, Guido van Rossum wrote:
> On Sun, Oct 7, 2012 at 6:09 PM, Alexander Belopolsky
I don't understand the reluctance to address a common conceptual > <alexander.belopol...@gmail.com> wrote: >> On Sun, Oct 7, 2012 at 8:54 PM, Guido van Rossum <gu...@python.org> wrote: >>> Seriously, we can't change our position on this topic now without >>> making a lot of people seriously unhappy. IEEE 754 it is. >> I did not suggest a change. I wrote: "I am not suggesting any >> language changes, but I think it will be >> useful to explain why float('nan') != float('nan') somewhere in the >> docs." If there is a concise explanation for the choice of IEEE 754 >> vs. Java, I think we should write it down and put an end to this >> debate. > Referencing Java here is absurd and I still consider this suggestion > as a troll. Python is not in any way based on Java. > On the other hand referencing IEEE 754 makes all the sense in the
speed-bump in the docs. After all, the tutorial has an entire chapter (http://docs.python.org/tutorial/floatingpoint.html) that explains how floats work, even though they work exactly as IEEE 754 says they should. A sentence in section 5.4 (Numeric Types) would help. Something like, --Ned.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||