[Python-ideas] Shuffled

Bernardo Sulzbach mafagafogigante at gmail.com
Mon Sep 5 21:09:27 EDT 2016


On 09/05/2016 10:03 PM, Steven D'Aprano wrote:
>
> from random import shuffle
> shuffle(mylist)
>
> Why is that so important that it needs to be a built-in? In 15+ years of
> using Python, I've probably used shuffle() three or four times.
>

Just adding to this. Sorting is a problem that comes up in almost all 
applications, while shuffling simply does not.

I think that it is relevant enough not to require a third-party library, 
but it doesn't already.


More information about the Python-ideas mailing list