Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93fe96a

Browse files
committed
Py_BuildValue(): Add "D" conversion to create a Python complex value from
a Py_complex C value. Patch by Walter Dörwald. This closes SF patch #407148.
1 parent aec7924 commit 93fe96a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/ext/ext.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,9 @@ \section{Building Arbitrary Values
11281128
\item[\samp{f} (float) {[float]}]
11291129
Same as \samp{d}.
11301130

1131+
\item[\samp{D} (complex) {[Py_complex *]}]
1132+
Convert a C \ctype{Py_complex} structure to a Python complex number.
1133+
11311134
\item[\samp{O} (object) {[PyObject *]}]
11321135
Pass a Python object untouched (except for its reference count, which
11331136
is incremented by one). If the object passed in is a \NULL{}

0 commit comments

Comments
 (0)