[Python-Dev] decimal.py: == and != comparisons involving NaNs
Adam Olsen
rhamph at gmail.com
Fri Nov 13 23:08:59 CET 2009
On Fri, Nov 13, 2009 at 14:52, Mark Dickinson <dickinsm at gmail.com> wrote:
> On Fri, Nov 13, 2009 at 9:50 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
>> And they do: nan != 0 returns False. Maybe I'm missing your point
>> here?
>
> Aargh! True! I meant to say True!
Huh. Somewhere along the line I lost track of how python handled NaN.
I thought "comparisons always evaluate to false" was the rule.
--
Adam Olsen, aka Rhamphoryncus
More information about the Python-Dev
mailing list