Skip to content

Commit dde16f1

Browse files
committed
address review: suggest PyComplex_AsCComplex/PyComplex_FromCComplex
1 parent 6fd0b44 commit dde16f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/c-api/complex.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ Complex Numbers as Python Objects
123123
The complex number value, using the C :c:type:`Py_complex` representation.
124124
125125
.. deprecated-removed:: next 3.17
126+
Use instead :c:func:`PyComplex_AsCComplex` and
127+
:c:func:`PyComplex_FromCComplex` to access/set a Python complex
128+
number, using the C :c:type:`Py_complex` representation.
126129
127130
128131
.. c:var:: PyTypeObject PyComplex_Type

0 commit comments

Comments
 (0)