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.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/