[David]
> How is that fancy bitmask version different from my 3-line version?

Where he's referring to my:

     https://bugs.python.org/msg336487

and, I presume, to his:

    def total_order(x):
        if math.isnan(x):
            return (math.copysign(1, x), x)
 .     return (0, x)
\
Richard spelled out some differences in the message of his I was
replying to (but which I snipped in my reply to him, to get to the
only point I had to make).

So read his message again.  For example, the IEEE total order requires
that -0 be "less than" +0, but your `total_order()` function treats
them as equal.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5CXLCMC3KTVKBUFOLGABGQSRUJ35KYQ6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to