]> granicus.if.org Git - python/commit
Make floating-point exception error messages slightly more verbose: in
authorMark Dickinson <dickinsm@gmail.com>
Wed, 30 Apr 2008 23:30:57 +0000 (23:30 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 30 Apr 2008 23:30:57 +0000 (23:30 +0000)
commita0de26c3427b63efcd0a678c5d686b4df9f105e4
tree359d9467600c47eb14c3a1926e6a9ebda7720bb3
parent3cbf15f07a72c1dad2196975448ce18725f18c08
Make floating-point exception error messages slightly more verbose: in
particular, the error message now allows one to distinguish between a
ValueError arising from a singularity (e.g. log(0.)), which would
usually produce +-infinity in non-stop mode, and a ValueError resulting
from an invalid input (e.g. sqrt(-1.)), which would normally produce a
NaN in non-stop mode.
Lib/test/ieee754.txt
Lib/test/test_math.py
Modules/mathmodule.c