[Python-checkins] cpython (3.3): Improve the docstring of random.shuffle. Inform users not to provide int arg.
senthil.kumaran
python-checkins at python.org
Thu Sep 12 07:57:24 CEST 2013
http://hg.python.org/cpython/rev/4782faf29480
changeset: 85661:4782faf29480
branch: 3.3
parent: 85654:373907ca13e0
user: Senthil Kumaran <senthil at uthcode.com>
date: Wed Sep 11 22:54:31 2013 -0700
summary:
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
files:
Lib/random.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/random.py b/Lib/random.py
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -256,6 +256,8 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list