From: Raymond Hettinger Date: Mon, 7 Jun 2004 02:07:15 +0000 (+0000) Subject: Fix typo in comment. X-Git-Tag: v2.4a1~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dae505bbd59641a948c81bea981e7c44d4c2343;p=python Fix typo in comment. --- 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.