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 tim.peters
Recipients rhettinger, steven.daprano, tim.peters
Date 2016-09-06.02:57:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473130651.62.0.0143915702295.issue27964@psf.upfronthosting.co.za>
In-reply-to
Content
I'm at best -0 on the idea:  very easy to get the effect without it, and hard to imagine it's needed frequently.  `sorted()` is also very easy to mimic, but is used often by all sorts of code.  For example, to display output in a `for key in sorted(dict):` loop, or to create a throwaway sorted list for testing, like:

assert data2[low: high] == sorted(data[low: high])

In my own code, I find hundreds of uses of `sorted()`, but only a few dozen of `random.shuffle()`, and in none of the latter cases would `shuffled()` have been useful.
History
Date User Action Args
2016-09-06 02:57:31tim.peterssetrecipients: + tim.peters, rhettinger, steven.daprano
2016-09-06 02:57:31tim.peterssetmessageid: <1473130651.62.0.0143915702295.issue27964@psf.upfronthosting.co.za>
2016-09-06 02:57:31tim.peterslinkissue27964 messages
2016-09-06 02:57:31tim.peterscreate