summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-09-12 05:52:58 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-09-12 05:52:58 (GMT)
commit37851d0e55b4f759dadf2ed6dc8ce7a28197e49f (patch)
treeaf2b2f890c150f0e4235b661db50e18c5a437690
parentb65685f3f22d66e4f99abccf56ec54cdcce36c04 (diff)
downloadcpython-37851d0e55b4f759dadf2ed6dc8ce7a28197e49f.zip
cpython-37851d0e55b4f759dadf2ed6dc8ce7a28197e49f.tar.gz
cpython-37851d0e55b4f759dadf2ed6dc8ce7a28197e49f.tar.bz2
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
-rw-r--r--Lib/random.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py
index af04ab2..6fa1c05 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -278,6 +278,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.
"""
if random is None: