| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 25fcd39 commit 226f544
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1828,7 +1828,7 @@ math_isfinite(PyObject *self, PyObject *arg) | |||
| 1828 | 1828 | ||
| 1829 | 1829 | PyDoc_STRVAR(math_isfinite_doc, | |
| 1830 | 1830 | "isfinite(x) -> bool\n\n\ | |
| 1831 | - Check if float x is finite (not an infinity or NaN)."); | ||
| 1831 | + Return True if x is neither an infinity nor a NaN, and False otherwise."); | ||
| 1832 | 1832 | ||
| 1833 | 1833 | static PyObject * | |
| 1834 | 1834 | math_isnan(PyObject *self, PyObject *arg) | |
@@ -1841,7 +1841,7 @@ math_isnan(PyObject *self, PyObject *arg) | |||
| 1841 | 1841 | ||
| 1842 | 1842 | PyDoc_STRVAR(math_isnan_doc, | |
| 1843 | 1843 | "isnan(x) -> bool\n\n\ | |
| 1844 | - Check if float x is not a number (NaN)."); | ||
| 1844 | + Return True if x is a NaN (not a number), and False otherwise."); | ||
| 1845 | 1845 | ||
| 1846 | 1846 | static PyObject * | |
| 1847 | 1847 | math_isinf(PyObject *self, PyObject *arg) | |
@@ -1854,7 +1854,7 @@ math_isinf(PyObject *self, PyObject *arg) | |||
| 1854 | 1854 | ||
| 1855 | 1855 | PyDoc_STRVAR(math_isinf_doc, | |
| 1856 | 1856 | "isinf(x) -> bool\n\n\ | |
| 1857 | - Check if float x is infinite (positive or negative)."); | ||
| 1857 | + Return True if x is a positive or negative infinity, and False otherwise."); | ||
| 1858 | 1858 | ||
| 1859 | 1859 | static PyMethodDef math_methods[] = { | |
| 1860 | 1860 | {"acos", math_acos, METH_O, math_acos_doc}, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments