Feature request: sorting a list slice
Heiko Wundram
me+python at modelnine.org
Fri May 19 15:22:23 EDT 2006
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.
More information about the Python-list
mailing list