summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-03-12 21:06:31 (GMT)
committerFred Drake <fdrake@acm.org>2001-03-12 21:06:31 (GMT)
commit93fe96a3c82b11b2bccef29d1f4a422a945e4cdd (patch)
tree5a60dd9cfea17999ede836e96ad7973be8182984 /Doc/ext
parentaec79247b145e6cd5b7a769fd85ab71748d8b247 (diff)
downloadcpython-93fe96a3c82b11b2bccef29d1f4a422a945e4cdd.zip
cpython-93fe96a3c82b11b2bccef29d1f4a422a945e4cdd.tar.gz
cpython-93fe96a3c82b11b2bccef29d1f4a422a945e4cdd.tar.bz2
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.
Diffstat (limited to 'Doc/ext')
-rw-r--r--Doc/ext/ext.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index 250859b..2708d52 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{}