From: Fred Drake Date: Mon, 12 Mar 2001 21:06:31 +0000 (+0000) Subject: Py_BuildValue(): Add "D" conversion to create a Python complex value from X-Git-Tag: v2.1b2~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93fe96a3c82b11b2bccef29d1f4a422a945e4cdd;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index 250859b553aa..2708d523a903 100644 --- a/Doc/ext/ext.tex +++ b/Doc/ext/ext.tex @@ -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{}