3 ms·
Actually, according to the standard, you should get either +inf or an exception. Both behaviors are valid. Nevertheless, according to the standard, the user sho
by adrian_b 6y ago
Actually, according to the standard, you should get either +inf or an exception.
Both behaviors are valid.
Nevertheless, according to the standard, the user should be able to choose between getting +inf and getting an exception.
If in Python there is no way to mask the divide by zero exception, then that is not standard-compliant.