File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,12 @@ Porting to Python 3.14
231
231
Deprecated
232
232
----------
233
233
234
+ * Macros :c:macro: `!Py_IS_NAN `, :c:macro: `!Py_IS_INFINITY `
235
+ and :c:macro: `!Py_IS_FINITE ` are :term: `soft deprecated `,
236
+ use instead :c:macro: `!isnan `, :c:macro: `!isinf ` and
237
+ :c:macro: `!isfinite ` available from :file: `math.h `
238
+ since C99. (Contributed by Sergey B Kirpichev in :gh: `119613 `.)
239
+
234
240
Removed
235
241
-------
236
242
Original file line number Diff line number Diff line change 29
29
30
30
// Py_IS_NAN(X)
31
31
// Return 1 if float or double arg is a NaN, else 0.
32
+ // Soft deprecated since Python 3.14, use isnan() instead.
32
33
#define Py_IS_NAN (X ) isnan(X)
33
34
34
35
// Py_IS_INFINITY(X)
35
36
// Return 1 if float or double arg is an infinity, else 0.
37
+ // Soft deprecated since Python 3.14, use isinf() instead.
36
38
#define Py_IS_INFINITY (X ) isinf(X)
37
39
38
40
// Py_IS_FINITE(X)
39
41
// Return 1 if float or double arg is neither infinite nor NAN, else 0.
42
+ // Soft deprecated since Python 3.14, use isfinite() instead.
40
43
#define Py_IS_FINITE (X ) isfinite(X)
41
44
42
45
// Py_INFINITY: Value that evaluates to a positive double infinity.
Original file line number Diff line number Diff line change
1
+ Macros ``Py_IS_NAN ``, ``Py_IS_INFINITY `` and ``Py_IS_FINITE ``
2
+ are :term: `soft deprecated `.
You can’t perform that action at this time.
0 commit comments