summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-09-28 03:04:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-09-28 03:04:23 (GMT)
commit78a5271d3e79e4ee074b832629bfff9ca1c255ef (patch)
treec62c1c2909777860e774ef0de8d292d5db77ddff /Doc
parentad512265a5c7fddf9df614b7b74fe53246643bfb (diff)
downloadcpython-78a5271d3e79e4ee074b832629bfff9ca1c255ef.zip
cpython-78a5271d3e79e4ee074b832629bfff9ca1c255ef.tar.gz
cpython-78a5271d3e79e4ee074b832629bfff9ca1c255ef.tar.bz2
SF bug #1033038: Misleading error message in random.choice
Added a clarifying line to the docs.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/librandom.tex1
1 files changed, 1 insertions, 0 deletions
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}}