diff options
author | Raymond Hettinger <python@rcn.com> | 2004-09-28 03:04:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-09-28 03:04:23 (GMT) |
commit | 78a5271d3e79e4ee074b832629bfff9ca1c255ef (patch) | |
tree | c62c1c2909777860e774ef0de8d292d5db77ddff /Doc | |
parent | ad512265a5c7fddf9df614b7b74fe53246643bfb (diff) | |
download | cpython-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.tex | 1 |
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}} |