[issue1640] Enhancements for mathmodule

Mark Dickinson report at bugs.python.org
Sun Jan 20 17:33:28 CET 2008


Mark Dickinson added the comment:

whoops.  OverflowError should be something else in the previous post;  of course, 
OverflowError is inappropriate for domain errors (but entirely appropriate for 
something like exp(1000)).

Currently, on Linux I get:
  - overflow (exp(1000))    -> OverflowError
  - domain error (sqrt(-1)) -> ValueError
  - singularity (log(0))    -> OverflowError

On OS X I get:
  - overflow -> OverflowError
  - domain error -> NaN
  - singularity -> OverflowError

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1640>
__________________________________


More information about the Python-bugs-list mailing list