From: Fred Drake Date: Wed, 25 May 2005 05:42:51 +0000 (+0000) Subject: fix description of the input range of unichr() X-Git-Tag: v2.4.2c1~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29b89d799af0ec68c930c98d7c51fb4b49d2c97d;p=thirdparty%2FPython%2Fcpython.git fix description of the input range of unichr() (closes SF bug #1120777) --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 3d185dbbc12b..c624cc828e57 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -1039,7 +1039,8 @@ It's a function Return the Unicode string of one character whose Unicode code is the integer \var{i}. For example, \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. + 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. \versionadded{2.0} \end{funcdesc}