[BangPypers] New bug

Noufal Ibrahim noufal at gmail.com
Thu Apr 28 07:30:33 CEST 2011


On Thu, Apr 28 2011, Senthil Kumaran wrote:

> On Wed, Apr 27, 2011 at 10:05:33AM -0500, kaushik kalyanaraman wrote:
>> On Wed, Apr 27, 2011 at 5:28 AM, Senthil Kumaran <senthil at uthcode.com> wrote:
>> 
>> > The second line is bit confusing, because the way to check for nan is
>> > usually via math.isnan.  The report says that identity comparison is
>> > not done in containers that may be the bug.
>> I believe that the second-line behavior is the bug since the first one
>> is correct from a math point of view.
>
> Actually no, the original python-dev discussion is more enlightening.
> This got rejected as not a bug, because of it is theoretical only
> value.

Yes. It's very enlightening. Especially Raymond's posts. 

> Yeah, you can play around and find subtleties nan,inf and -0, but
> there are set of methods which are defined for proper operation of
> those.

While true, I don't like surprises. I don't expect to come across corner
cases like these in my day to day life but when I do, I don't want to
have to look up the manual for some subtlety that explains this counter
intuitive behaviour.



-- 


More information about the BangPypers mailing list