Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d3d54e4a
Commit
d3d54e4a
authored
Jul 11, 2010
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve docstrings for isnan, isinf and isfinite.
parent
36d6ee46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/mathmodule.c
Modules/mathmodule.c
+3
-3
No files found.
Modules/mathmodule.c
View file @
d3d54e4a
...
...
@@ -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
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment