wxjmfa...@gmail.com:

> In short, a lack of consistency.
>
>>>> 1e300*1e300
> inf
>>>> exp(1e300)
> Traceback (most recent call last):
>   File "<eta last command>", line 1, in <module>
> OverflowError: math range error

Good point!

Maybe IEEE had some specific numeric algorithms in mind when it
introduced inf and nan. However, I have a feeling an exception would be
a sounder response whenever the arithmetics leaves the solid ground.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to