gh-128813: soft-deprecate _Py_c_*() functions (GH-137261) · python/cpython@9ced5c4 · GitHub
Skip to content

Commit 9ced5c4

Browse files
authored
gh-128813: soft-deprecate _Py_c_*() functions (GH-137261)
1 parent 2a87af0 commit 9ced5c4

4 files changed

Lines changed: 39 additions & 1 deletion

File tree

Doc/c-api/complex.rst

Lines changed: 28 additions & 0 deletions

Doc/whatsnew/3.15.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@ Deprecated C APIs
548548
signed integer type of the same size is now deprecated.
549549
(Contributed by Serhiy Storchaka in :gh:`132629`.)
550550

551+
* Functions :c:func:`_Py_c_sum`, :c:func:`_Py_c_diff`, :c:func:`_Py_c_neg`,
552+
:c:func:`_Py_c_prod`, :c:func:`_Py_c_quot`, :c:func:`_Py_c_pow` and
553+
:c:func:`_Py_c_abs` are :term:`soft deprecated`.
554+
(Contributed by Sergey B Kirpichev in :gh:`128813`.)
555+
551556
.. Add C API deprecations above alphabetically, not here at the end.
552557
553558
Removed C APIs

Include/cpython/complexobject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ typedef struct {
77
double imag;
88
} Py_complex;
99

10-
// Operations on complex numbers.
10+
/* Operations on complex numbers (soft deprecated
11+
since Python 3.15). */
1112
PyAPI_FUNC(Py_complex) _Py_c_sum(Py_complex, Py_complex);
1213
PyAPI_FUNC(Py_complex) _Py_c_diff(Py_complex, Py_complex);
1314
PyAPI_FUNC(Py_complex) _Py_c_neg(Py_complex);
Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)