summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-28 14:43:33 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-28 14:43:33 (GMT)
commit3c3507fd4fad44d9497c9abfe20ce67d96773f87 (patch)
treee4d89aff6b47f0fcfcfe416a82e76a7cd455d027 /Doc/ext
parent25d34473c3c2429f0bf5c27e147fe57c6a718e99 (diff)
downloadcpython-3c3507fd4fad44d9497c9abfe20ce67d96773f87.zip
cpython-3c3507fd4fad44d9497c9abfe20ce67d96773f87.tar.gz
cpython-3c3507fd4fad44d9497c9abfe20ce67d96773f87.tar.bz2
Documentation patch describing the 'u' and 'u#' format specifiers,
from Brian Hooper <brian_takashi@hotmail.com>.
Diffstat (limited to 'Doc/ext')
-rw-r--r--Doc/ext/ext.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index d8c1c87..cf5b1ef 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -1006,6 +1006,16 @@ Same as \samp{s}.
\item[\samp{z\#} (string or \code{None}) {[char *, int]}]
Same as \samp{s\#}.
+\item[\samp{u} (Unicode string) {[Py_UNICODE *]}]
+Convert a null-terminated buffer of Unicode (UCS-2) data to a Python
+Unicode object. If the Unicode buffer pointer is \NULL,
+\code{None} is returned.
+
+\item[\samp{u\#} (Unicode string) {[Py_UNICODE *, int]}]
+Convert a Unicode (UCS-2) data buffer and its length to a Python
+Unicode object. If the Unicode buffer pointer is \NULL, the length
+is ignored and \code{None} is returned.
+
\item[\samp{i} (integer) {[int]}]
Convert a plain C \ctype{int} to a Python integer object.