From 37851d0e55b4f759dadf2ed6dc8ce7a28197e49f Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 11 Sep 2013 22:52:58 -0700 Subject: [PATCH] Improve the docstring of random.shuffle. Inform users not to provide int arg. Addresses issue #14927 --- Lib/random.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.50.1