[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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/5CXLCMC3KTVKBUFOLGABGQSRUJ35KYQ6/
Code of Conduct: http://python.org/psf/codeofconduct/