10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a531fd7 commit 5070e5cCopy full SHA for 5070e5c
Doc/whatsnew/3.14.rst
@@ -103,7 +103,9 @@ Optimizations
103
Deprecated
104
==========
105
106
-
+* Deprecate ``Py_IS_NAN``, ``Py_IS_INFINITY`` and ``Py_IS_FINITE`` macroses,
107
+ use instead ``isnan``, ``isinf`` and ``isfinite`` available from ``<math.h>``
108
+ since C99. (Contributed by Sergey B Kirpichev in :gh:`119619`.)
109
110
Removed
111
=======
Include/pymath.h
@@ -27,6 +27,10 @@
27
#define Py_MATH_TAU 6.2831853071795864769252867665590057683943L
28
#endif
29
30
+/* Py_IS_NAN, Py_IS_INFINITY and Py_IS_FINITE are deprecated
31
+ * since CPython 3.14.
32
+ */
33
+
34
// Py_IS_NAN(X)
35
// Return 1 if float or double arg is a NaN, else 0.
36
#define Py_IS_NAN(X) isnan(X)
0 commit comments