aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/pymath.h
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-05-29 13:45:14 +0300
committerGitHub <noreply@github.com>2024-05-29 10:45:14 +0000
commit0cdc5c8d5446e5eedd34e03d8e380bc237d1379b (patch)
tree97e7a1f00f3b8d3eacbfe6ed48a04f6a0275540f /Include/pymath.h
parent016a46ab572fc681e4a06760147b9ae311b21881 (diff)
downloadcpython-0cdc5c8d5446e5eedd34e03d8e380bc237d1379b.tar.gz
cpython-0cdc5c8d5446e5eedd34e03d8e380bc237d1379b.zip
gh-119613: Soft deprecate Py_IS_NAN/INFINITY/FINITE (#119701)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Include/pymath.h')
-rw-r--r--Include/pymath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pymath.h b/Include/pymath.h
index 4c1e3d99848..d8f763f808d 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -29,14 +29,17 @@
// Py_IS_NAN(X)
// Return 1 if float or double arg is a NaN, else 0.
+// Soft deprecated since Python 3.14, use isnan() instead.
#define Py_IS_NAN(X) isnan(X)
// Py_IS_INFINITY(X)
// Return 1 if float or double arg is an infinity, else 0.
+// Soft deprecated since Python 3.14, use isinf() instead.
#define Py_IS_INFINITY(X) isinf(X)
// Py_IS_FINITE(X)
// Return 1 if float or double arg is neither infinite nor NAN, else 0.
+// Soft deprecated since Python 3.14, use isfinite() instead.
#define Py_IS_FINITE(X) isfinite(X)
// Py_INFINITY: Value that evaluates to a positive double infinity.