Note the exception raised when parameter to chr() is out of range.

This commit is contained in:
Fred Drake 2000-04-06 14:45:19 +00:00
parent 33d51841a3
commit 665dd704a3

View 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 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 \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], 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} \end{funcdesc}
\begin{funcdesc}{cmp}{x, y} \begin{funcdesc}{cmp}{x, y}