diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-07-11 18:13:41 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-07-11 18:13:41 (GMT) |
commit | 226f544caa2c2423610df2bc60453aa28cf17618 (patch) | |
tree | 19c11778fcf001792a3d42edd9fc1bdfa031a801 /Modules | |
parent | 25fcd392aa84cdc156ba4480c7b301809de72984 (diff) | |
download | cpython-226f544caa2c2423610df2bc60453aa28cf17618.zip cpython-226f544caa2c2423610df2bc60453aa28cf17618.tar.gz cpython-226f544caa2c2423610df2bc60453aa28cf17618.tar.bz2 |
Improve docstrings for isnan, isinf and isfinite.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 152788f..69e1423 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -1828,7 +1828,7 @@ math_isfinite(PyObject *self, PyObject *arg) PyDoc_STRVAR(math_isfinite_doc, "isfinite(x) -> bool\n\n\ -Check if float x is finite (not an infinity or NaN)."); +Return True if x is neither an infinity nor a NaN, and False otherwise."); static PyObject * math_isnan(PyObject *self, PyObject *arg) @@ -1841,7 +1841,7 @@ math_isnan(PyObject *self, PyObject *arg) PyDoc_STRVAR(math_isnan_doc, "isnan(x) -> bool\n\n\ -Check if float x is not a number (NaN)."); +Return True if x is a NaN (not a number), and False otherwise."); static PyObject * math_isinf(PyObject *self, PyObject *arg) @@ -1854,7 +1854,7 @@ math_isinf(PyObject *self, PyObject *arg) PyDoc_STRVAR(math_isinf_doc, "isinf(x) -> bool\n\n\ -Check if float x is infinite (positive or negative)."); +Return True if x is a positive or negative infinity, and False otherwise."); static PyMethodDef math_methods[] = { {"acos", math_acos, METH_O, math_acos_doc}, |