On Wed, Apr 27, 2011 at 10:05:33AM -0500, kaushik kalyanaraman wrote: > On Wed, Apr 27, 2011 at 5:28 AM, Senthil Kumaran <sent...@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. 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. -- Senthil Support your local police force -- steal!! _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers