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