diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-07-07 16:21:29 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-07-07 16:21:29 (GMT) |
commit | be64d951694c3f00c57024799246f41618efd625 (patch) | |
tree | f0b713d66733ed113be23c664c035405a24146b2 /Modules/mathmodule.c | |
parent | 9c91eb844c63a2d86bb845cd41d2662af0866a8b (diff) | |
download | cpython-be64d951694c3f00c57024799246f41618efd625.zip cpython-be64d951694c3f00c57024799246f41618efd625.tar.gz cpython-be64d951694c3f00c57024799246f41618efd625.tar.bz2 |
Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 7911251..b1d7a36 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -896,7 +896,7 @@ FUNC1A(gamma, m_tgamma, "gamma(x)\n\nGamma function at x.") FUNC1A(lgamma, m_lgamma, "lgamma(x)\n\nNatural logarithm of absolute value of Gamma function at x.") -FUNC1(log1p, m_log1p, 1, +FUNC1(log1p, m_log1p, 0, "log1p(x)\n\nReturn the natural logarithm of 1+x (base e).\n" "The result is computed in a way which is accurate for x near zero.") FUNC1(sin, sin, 0, |