Feature request: sorting a list slice

George Sakkis george.sakkis at gmail.com
Fri May 19 17:24:54 EDT 2006


Heiko Wundram wrote:

> Am Donnerstag 18 Mai 2006 19:27 schrieb George Sakkis:
> > It would be useful if list.sort() accepted two more optional
> > parameters, start and stop, so that you can sort a slice in place.
>
> I've just submitted:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1491804&group_id=5470&atid=305470
>
> to the bugtracker, which extends the (start, stop) keyword arguments to
> list.reverse() (which I've needed more than once). The patch updates the test
> suite, documentation, list object, and sorted() builtin to accept (or
> specify) the new arguments.
>
> Any comment/feedback would be appreciated.
>
> --- Heiko.

This is great, thanks Heiko ! Any idea on the chances of being
considered for inclusion in 2.5 ?

George




More information about the Python-list mailing list