SF bug #1033038: Misleading error message in random.choice

Added a clarifying line to the docs.
This commit is contained in:
Raymond Hettinger 2004-09-28 03:04:23 +00:00
parent ad512265a5
commit 78a5271d3e
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ Functions for sequences:
\begin{funcdesc}{choice}{seq}
Return a random element from the non-empty sequence \var{seq}.
If \var{seq} is empty, raises \exception{IndexError}.
\end{funcdesc}
\begin{funcdesc}{shuffle}{x\optional{, random}}