Commit dc229df3 authored by Raymond Hettinger's avatar Raymond Hettinger

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

Added a clarifying line to the docs.
parent 74540932
......@@ -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}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment