]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improve the docstring of random.shuffle. Inform users not to provide int arg.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 12 Sep 2013 05:54:31 +0000 (22:54 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 12 Sep 2013 05:54:31 +0000 (22:54 -0700)
Addresses issue #14927

Lib/random.py

index cf83114b89475e9fb02e56eadfeaf0549ae620a6..5876766a6126fa2325cb879571ddda8cb0b46c95 100644 (file)
@@ -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