Correction to previous post:

On 11/10/2020 22:47, Wes Turner wrote:


Which of these are you arguing should fail if Python changes to returning [+/-]inf instead of raising ZeroDivisionError?

    assert inf / inf == 1

That should raise an exception; inf/inf is meaningless (just as division by zero is meaningless with finite numbers).

I should have said:

That should raise an exception; inf/inf is meaningless (just as 0/0 is meaningless).

Best wishes
Rob Cliffe



_______________________________________________
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/5RABKNEAIQVM5FOGS7LKAYGMRVTVJUUE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to