]> granicus.if.org Git - python/commitdiff
Improve the docstring of random.shuffle. Inform users not to provide int arg.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 12 Sep 2013 05:52:58 +0000 (22:52 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 12 Sep 2013 05:52:58 +0000 (22:52 -0700)
Addresses issue #14927

Lib/random.py

index af04ab207d37c098d274caf852d37bdbcfc28198..6fa1c05088900ce9237231e210d9cff5dccf3204 100644 (file)
@@ -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: