From: Senthil Kumaran Date: Thu, 12 Sep 2013 05:54:31 +0000 (-0700) Subject: Improve the docstring of random.shuffle. Inform users not to provide int arg. X-Git-Tag: v3.4.0a3~83^2~1^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8ce51ab1636ba0c36d0a5e31a1b04f8016035a1;p=thirdparty%2FPython%2Fcpython.git 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 cf83114b8947..5876766a6126 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