From f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 11 Sep 2013 22:54:31 -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 cf83114b894..5876766a612 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -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