unichr(),

unicode():  Added \versionadded{} annotations.
This commit is contained in:
Fred Drake 2000-04-06 15:06:03 +00:00
parent 0b72116812
commit 343301aaa4
1 changed files with 2 additions and 0 deletions

View File

@ -669,6 +669,7 @@ integer \var{i}, e.g., \code{unichr(97)} returns the string
\code{u'a'}. This is the inverse of \function{ord()} for Unicode \code{u'a'}. This is the inverse of \function{ord()} for Unicode
strings. The argument must be in the range [0..65535], inclusive. strings. The argument must be in the range [0..65535], inclusive.
\exception{ValueError} is raised otherwise. \exception{ValueError} is raised otherwise.
\versionadded{1.6}
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{unicode}{string\optional{, encoding='utf-8'\optional{, errors='strict'}}} \begin{funcdesc}{unicode}{string\optional{, encoding='utf-8'\optional{, errors='strict'}}}
@ -676,6 +677,7 @@ Decodes \var{string} using the codec for \var{encoding}. Error
handling is done according to \var{errors}. The default behavior is handling is done according to \var{errors}. The default behavior is
to decode UTF-8 in strict mode, meaning that encoding errors raise to decode UTF-8 in strict mode, meaning that encoding errors raise
\exception{ValueError}. \exception{ValueError}.
\versionadded{1.6}
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{vars}{\optional{object}} \begin{funcdesc}{vars}{\optional{object}}