Skip to content

Commit

Permalink
Add Py_complex members
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jul 16, 2024
1 parent 62c402c commit 1bf9ae0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Doc/c-api/complex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ pointers. This is consistent throughout the API.
number object. Most of the functions for dealing with complex number objects
use structures of this type as input or output values, as appropriate.

* :c:member:`Py_complex.real`
* :c:member:`Py_complex.imag`
.. c:namespace:: Py_complex
It is defined as::
.. c:member:: double real
.. c:member:: double imag
typedef struct {
double real;
double imag;
} Py_complex;
It is defined as::

typedef struct {
double real;
double imag;
} Py_complex;


.. c:function:: Py_complex _Py_c_sum(Py_complex left, Py_complex right)
Expand Down

0 comments on commit 1bf9ae0

Please sign in to comment.