Kaydet (Commit) 5dae505b authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fix typo in comment.

üst 44cbfd78
...@@ -237,7 +237,7 @@ class Random(_random.Random): ...@@ -237,7 +237,7 @@ class Random(_random.Random):
def choice(self, seq): def choice(self, seq):
"""Choose a random element from a non-empty sequence.""" """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): def shuffle(self, x, random=None, int=int):
"""x, random=random.random -> shuffle list x in place; return None. """x, random=random.random -> shuffle list x in place; return None.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment