Documentation patch describing the 'u' and 'u#' format specifiers,

from Brian Hooper <brian_takashi@hotmail.com>.
This commit is contained in:
Fred Drake 2000-04-28 14:43:33 +00:00
parent 25d34473c3
commit 3c3507fd4f
1 changed files with 10 additions and 0 deletions

View File

@ -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.