mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
unichr(),
unicode(): Added \versionadded{} annotations.
This commit is contained in:
parent
0b72116812
commit
343301aaa4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
strings. The argument must be in the range [0..65535], inclusive.
|
||||
\exception{ValueError} is raised otherwise.
|
||||
\versionadded{1.6}
|
||||
\end{funcdesc}
|
||||
|
||||
\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
|
||||
to decode UTF-8 in strict mode, meaning that encoding errors raise
|
||||
\exception{ValueError}.
|
||||
\versionadded{1.6}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{vars}{\optional{object}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue