mirror of https://github.com/python/cpython
SF bug #1033038: Misleading error message in random.choice
Added a clarifying line to the docs.
This commit is contained in:
parent
ad512265a5
commit
78a5271d3e
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue