[Python-ideas] Multiple level sorting in python where the order of some levels may or may not be reversed
Sven R. Kunze
srkunze at mail.de
Mon Oct 17 16:48:11 EDT 2016
On 17.10.2016 22:31, Paul Moore wrote:
> On 17 October 2016 at 21:06, Sven R. Kunze <srkunze at mail.de> wrote:
>> Do you think that simple solution could have a chance to be added to stdlib
>> somehow (with the possibility of speeding it up in the future)?
> You could submit a doc patch to add an explanation of this technique
> to the list.sort function.
Is the github repo ready? If so, I will do.
> I doubt it's worth a builtin for a 2-line function.
Not this 2-line function alone indeed. As my note about speeding it up
in the future goes, I thought about an interface which allows people to
do easy multisort BUT with the possibility of further optimization by
the CPython or other Python implementations.
Cheers,
Sven
More information about the Python-ideas
mailing list