This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author palaviv
Recipients mark.dickinson, palaviv, rhettinger
Date 2016-02-19.19:32:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455910341.76.0.914915111625.issue26393@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-19 19:32:21palavivsetrecipients: + palaviv, rhettinger, mark.dickinson
2016-02-19 19:32:21palavivsetmessageid: <1455910341.76.0.914915111625.issue26393@psf.upfronthosting.co.za>
2016-02-19 19:32:21palavivlinkissue26393 messages
2016-02-19 19:32:21palavivcreate