On Sun, 2020-09-13 at 10:01 +1000, Steven D'Aprano wrote: > If you have an INF, then you can generate a NAN with `INF - INF`.
>>> math.inf - math.inf nan >>> (math.inf - math.inf) == math.nan False
_______________________________________________ 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/BGW7ZX6RUKF2C4K7HPAVLWRIOYDIRKIQ/ Code of Conduct: http://python.org/psf/codeofconduct/