Commit 0f0ba95c authored by Fred Drake's avatar Fred Drake

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.
parent 4e8d9564
...@@ -1128,6 +1128,9 @@ Convert a C \ctype{double} to a Python floating point number. ...@@ -1128,6 +1128,9 @@ Convert a C \ctype{double} to a Python floating point number.
\item[\samp{f} (float) {[float]}] \item[\samp{f} (float) {[float]}]
Same as \samp{d}. Same as \samp{d}.
\item[\samp{D} (complex) {[Py_complex *]}]
Convert a C \ctype{Py_complex} structure to a Python complex number.
\item[\samp{O} (object) {[PyObject *]}] \item[\samp{O} (object) {[PyObject *]}]
Pass a Python object untouched (except for its reference count, which Pass a Python object untouched (except for its reference count, which
is incremented by one). If the object passed in is a \NULL{} is incremented by one). If the object passed in is a \NULL{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment