(original) (raw)

changeset: 85660:82bdd5fc7a71 branch: 2.7 parent: 85653:443d12b61e5b user: Senthil Kumaran senthil@uthcode.com date: Wed Sep 11 22:52:58 2013 -0700 files: Lib/random.py description: Improve the docstring of random.shuffle. Inform users not to provide int arg. Addresses issue #14927 diff -r 443d12b61e5b -r 82bdd5fc7a71 Lib/random.py --- a/Lib/random.py Mon Sep 09 22:38:58 2013 -0700 +++ b/Lib/random.py Wed Sep 11 22:52:58 2013 -0700 @@ -278,6 +278,8 @@ 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: /senthil@uthcode.com