diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-09-12 05:55:54 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-09-12 05:55:54 (GMT) |
commit | b4055f294e51ae11bc93ad794e9fe2fab3e66aa2 (patch) | |
tree | 24c038a9def1bcf46d285075be0eed8abfce85ce | |
parent | aa1004da9797a7e440c98ddaa151153daec9e538 (diff) | |
parent | f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1 (diff) | |
download | cpython-b4055f294e51ae11bc93ad794e9fe2fab3e66aa2.zip cpython-b4055f294e51ae11bc93ad794e9fe2fab3e66aa2.tar.gz cpython-b4055f294e51ae11bc93ad794e9fe2fab3e66aa2.tar.bz2 |
merge from 3.3
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
-rw-r--r-- | Lib/random.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py index 2323325..e63e94f 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -257,9 +257,16 @@ class Random(_random.Random): def shuffle(self, x, random=None, int=int): """Shuffle list x in place, and return None. +<<<<<<< local Optional argument random is a 0-argument function returning a random float in [0.0, 1.0); if it is the default None, the standard random.random will be used. +======= + Optional arg random is a 0-argument function returning a random + float in [0.0, 1.0); by default, the standard random.random. + + Do not supply the 'int' argument. +>>>>>>> other """ randbelow = self._randbelow |