[Python-Dev] Comparison speed

Tim Peters tim.one@home.com
Wed, 16 May 2001 03:25:28 -0400


[Guido]
> PEP 207 is quite explicit that == and != are not to be assumed each
> other's complement.  It is silent on the x==x issue but the PEP
> mentions IEEE 754 so I agree that this also shouldn't be cut short.

It's explicit about x==x too:

    (Note: Python currently assumes that x==x is always true
    and x!=x is never true; this should not be assumed.)

That's from the end of point #4, under "Proposed Resolutions".  I agreed
then, and still do <wink>.