18 Mar
2022
18 Mar
'22
8:26 p.m.
Stanley <ostanley.lee@gmail.com> added the comment: How does this sound instead? The unequalness is pushed to the front and the IEEE part back so it's less likely missed: Math.nan and float('nan') are never equal to any other value, including themselves, as per IEEE 754. Use math.isnan to test for NANs. ---------- nosy: +slateny _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue47031> _______________________________________