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