On Wed, Apr 27, 2011 at 5:59 PM, Noufal Ibrahim <nou...@gmail.com> wrote: > > Just came across it on Python dev. > >>>> nan = float("nan") >>>> nan == nan > False >>>> [nan] == [nan] > True > > Nice eh?
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. There are various quirks with nan,inf and -0 and +0's that most often is amusing. :) -- Senthil _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers