On Sun, Jul 05, 2020 at 12:15:27PM -0400, David Mertz wrote: > This is a digression, but does anyone have a nice example IN PYTHON of > arriving at a NaN without going through infinity. I think Julia is right > and Python is wrong about '0/0', but as things are, that's not an example.
I wouldn't expect one in Python, I think there is an unofficial policy of ensuring that Python builtins and the math library will not return NANs unless passed a NAN, or at least an INF, rather they will raise. Chris' example: > > >>> 1e1000-1e1000 > > nan is just a funny way of writing INF - INF :-) -- 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/DT4GE4UAPSAPPV3DSFF7SHEP3QR6BZGD/ Code of Conduct: http://python.org/psf/codeofconduct/