Skip to content

gh-128813: deprecate cval field of the PyComplexObject struct #137271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 8, 2025
Merged
Prev Previous commit
Next Next commit
address review: suggest PyComplex_AsCComplex/PyComplex_FromCComplex
  • Loading branch information
skirpichev committed Aug 6, 2025
commit dde16f1215d1d7593f8fc26e8c73d3e107d7edb0
3 changes: 3 additions & 0 deletions Doc/c-api/complex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Complex Numbers as Python Objects
The complex number value, using the C :c:type:`Py_complex` representation.

.. deprecated-removed:: next 3.17
Use instead :c:func:`PyComplex_AsCComplex` and
:c:func:`PyComplex_FromCComplex` to access/set a Python complex
number, using the C :c:type:`Py_complex` representation.


.. c:var:: PyTypeObject PyComplex_Type
Expand Down