From 78a5271d3e79e4ee074b832629bfff9ca1c255ef Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 28 Sep 2004 03:04:23 +0000 Subject: SF bug #1033038: Misleading error message in random.choice Added a clarifying line to the docs. --- Doc/lib/librandom.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/lib/librandom.tex b/Doc/lib/librandom.tex index 443528d..1daac61 100644 --- a/Doc/lib/librandom.tex +++ b/Doc/lib/librandom.tex @@ -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}} -- cgit v0.12