On 5/03/20 4:08 pm, Richard Damon wrote:
Sometimes I wonder if since Python supports dynamic typing of results, might not do better by removing the NaN value from Floats and Decimals, and make the operations that generate the NaN generate an object of a special NaN type.

I don't see what problem that would solve. All it would do is
enable us to claim that the float type was totally ordered,
without technically lying. Any operation on floats would
still be able to return a NaNType value that would get mixed
in with your other float operations, so it would make no
practical difference.

--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/B7VYCZQTOUREXO5XNWL7JNXYJPG3RMME/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to