Kaydet (Commit) 78a5271d authored tarafından Raymond Hettinger's avatar Raymond Hettinger

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

Added a clarifying line to the docs.
üst ad512265
...@@ -129,6 +129,7 @@ Functions for sequences: ...@@ -129,6 +129,7 @@ Functions for sequences:
\begin{funcdesc}{choice}{seq} \begin{funcdesc}{choice}{seq}
Return a random element from the non-empty sequence \var{seq}. Return a random element from the non-empty sequence \var{seq}.
If \var{seq} is empty, raises \exception{IndexError}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{shuffle}{x\optional{, random}} \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