Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 62844:87555f45cd6b
Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Wed, 07 Jul 2010 16:21:29 +0000 |
| parents | e655849e79c6 |
| children | ca05371cff10 |
line wrap: on
line diff
--- a/Modules/mathmodule.c Wed Jul 07 16:17:31 2010 +0000 +++ b/Modules/mathmodule.c Wed Jul 07 16:21:29 2010 +0000 @@ -896,7 +896,7 @@ "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,
