From: Fred Drake Date: Fri, 28 Apr 2000 14:43:33 +0000 (+0000) Subject: Documentation patch describing the 'u' and 'u#' format specifiers, X-Git-Tag: v2.0b1~1910 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c3507fd4fad44d9497c9abfe20ce67d96773f87;p=python Documentation patch describing the 'u' and 'u#' format specifiers, from Brian Hooper . --- diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index d8c1c8744c..cf5b1ef5bd 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.