mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix typo in comment.
This commit is contained in:
parent
44cbfd7819
commit
5dae505bbd
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue