changeset: 85662:15096b93ae5a parent: 85655:377bd6e0f61c parent: 85661:4782faf29480 user: Senthil Kumaran date: Wed Sep 11 22:55:54 2013 -0700 files: Lib/random.py description: merge from 3.3 Improve the docstring of random.shuffle. Inform users not to provide int arg. Addresses issue #14927 diff -r 377bd6e0f61c -r 15096b93ae5a Lib/random.py --- a/Lib/random.py Mon Sep 09 22:40:13 2013 -0700 +++ b/Lib/random.py Wed Sep 11 22:55:54 2013 -0700 @@ -257,9 +257,16 @@ def shuffle(self, x, random=None, int=int): """Shuffle list x in place, and return None. +<<<<<<< local Optional argument random is a 0-argument function returning a random float in [0.0, 1.0); if it is the default None, the standard random.random will be used. +======= + 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. +>>>>>>> other """ randbelow = self._randbelow

AltStyle によって変換されたページ (->オリジナル) /