fix description of the input range of unichr()

(closes SF bug #1120777)
This commit is contained in:
Fred Drake 2005-05-25 05:39:36 +00:00
parent db22958f07
commit b141cd03a1
1 changed files with 2 additions and 1 deletions

View File

@ -1077,7 +1077,8 @@ It's a function
Return the Unicode string of one character whose Unicode code is the Return the Unicode string of one character whose Unicode code is the
integer \var{i}. For example, \code{unichr(97)} returns the string integer \var{i}. For example, \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 valid range for the argument depends how Python was
configured -- it may be either UCS2 [0..0xFFFF] or UCS4 [0..0x10FFFF].
\exception{ValueError} is raised otherwise. \exception{ValueError} is raised otherwise.
\versionadded{2.0} \versionadded{2.0}
\end{funcdesc} \end{funcdesc}