summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-09-11 22:54:31 -0700
committerSenthil Kumaran <senthil@uthcode.com>2013-09-11 22:54:31 -0700
commit160c75e98d5440a8ad23e14129a2a447b77cea5d (patch)
tree9c150a042d71227905be8dba21138aeee2829320
parent979a42a6e14edb23e1f5277256e35f2e6ad13c77 (diff)
downloadcpython-160c75e98d5440a8ad23e14129a2a447b77cea5d.tar.gz
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 cf83114b89..5876766a61 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