summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-09-12 05:54:31 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-09-12 05:54:31 (GMT)
commitf8ce51ab1636ba0c36d0a5e31a1b04f8016035a1 (patch)
tree4f9e768de23b248197a9c0580a9124ef6afaec64 /Lib/random.py
parentb9183950d80b42cf7d37a82f5a58e5561355e177 (diff)
downloadcpython-f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1.zip
cpython-f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1.tar.gz
cpython-f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1.tar.bz2
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py
index cf83114..5876766 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -256,6 +256,8 @@ class Random(_random.Random):
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.
"""
randbelow = self._randbelow