diff options
author | Raymond Hettinger <python@rcn.com> | 2004-06-07 02:07:15 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-06-07 02:07:15 +0000 |
commit | 5dae505bbd59641a948c81bea981e7c44d4c2343 (patch) | |
tree | e6d7d6f0b283ed33766053d1625778d116f657f9 /Lib/random.py | |
parent | 44cbfd7819fcc40209d8bcb960eccfa7237b1717 (diff) | |
download | cpython-git-5dae505bbd59641a948c81bea981e7c44d4c2343.tar.gz |
Fix typo in comment.
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index 92163bb608..7ec6583af4 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -237,7 +237,7 @@ class Random(_random.Random): def choice(self, seq): """Choose a random element from a non-empty sequence.""" - return seq[int(self.random() * len(seq))] # raises IndexError in seq is empty + return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty def shuffle(self, x, random=None, int=int): """x, random=random.random -> shuffle list x in place; return None. |