]> granicus.if.org Git - python/commitdiff
Note the exception raised when parameter to chr() is out of range.
authorFred Drake <fdrake@acm.org>
Thu, 6 Apr 2000 14:45:19 +0000 (14:45 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 Apr 2000 14:45:19 +0000 (14:45 +0000)
Doc/lib/libfuncs.tex

index 2fba45a445d694afb5235b10f3fa91b3a62980f7..1aedf6444c13b84bf3da2de86e6a6e72bb8cb80a 100644 (file)
@@ -102,7 +102,8 @@ class instances are callable if they have a \method{__call__()} method.
   Return a string of one character whose \ASCII{} code is the integer
   \var{i}, e.g., \code{chr(97)} returns the string \code{'a'}.  This is the
   inverse of \function{ord()}.  The argument must be in the range [0..255],
-  inclusive.
+  inclusive; \exception{ValueError} will be raised if \var{i} is
+  outside that range.
 \end{funcdesc}
 
 \begin{funcdesc}{cmp}{x, y}