On Sat, Dec 28, 2019 at 11:58:35PM -0800, Andrew Barnert via Python-ideas wrote:
> No it won’t, unless you assume here that no possible non-numeric types > could ever have non-self-equal values. Which isn’t true. Reflexivity of equality (namely, that any value should be equal to itself) is such a fundamental property that I would assume that NANs are the only exception, until such time as somebody points out an uncontrived real-world example. A bigger concern is the question of what should isnan do for non-numeric types? isnan(None) # raise or return False? Clearly None is not a NAN, so it shouldn't return True. Should it return False because its not a NAN, or raise because it's not a numeric type at all? -- Steven _______________________________________________ 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/RE3KUBLW43TXFR2Y5OU3IZHEROUNXRPJ/ Code of Conduct: http://python.org/psf/codeofconduct/