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.
This commit is contained in:
Fred Drake 2001-03-12 21:06:31 +00:00
parent aec79247b1
commit 93fe96a3c8
1 changed files with 3 additions and 0 deletions

View File

@ -1128,6 +1128,9 @@ Convert a C \ctype{double} to a Python floating point number.
\item[\samp{f} (float) {[float]}]
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 *]}]
Pass a Python object untouched (except for its reference count, which
is incremented by one). If the object passed in is a \NULL{}