Message260529
I am suggesting adding random.shuffled to the random module. This is very similar to the shuffle function just return a new shuffled list instead of in place shuffle. This is very similar to the sorted and list.sort.
As you can see in the patch the shuffled function just return random.sample(x, len(x)) as this is what i usually do when i want to get back a shuffled list. |
|
Date |
User |
Action |
Args |
2016-02-19 19:32:21 | palaviv | set | recipients:
+ palaviv, rhettinger, mark.dickinson |
2016-02-19 19:32:21 | palaviv | set | messageid: <1455910341.76.0.914915111625.issue26393@psf.upfronthosting.co.za> |
2016-02-19 19:32:21 | palaviv | link | issue26393 messages |
2016-02-19 19:32:21 | palaviv | create | |
|