From: Senthil Kumaran Date: Thu, 12 Sep 2013 05:52:58 +0000 (-0700) Subject: Improve the docstring of random.shuffle. Inform users not to provide int arg. X-Git-Tag: v2.7.6rc1~158^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37851d0e55b4f759dadf2ed6dc8ce7a28197e49f;p=python Improve the docstring of random.shuffle. Inform users not to provide int arg. Addresses issue #14927 --- diff --git a/Lib/random.py b/Lib/random.py index af04ab207d..6fa1c05088 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: