Re: Feature request: sorting a list slice
- From: Heiko Wundram <me+python@xxxxxxxxxxxxx>
- Date: Fri, 19 May 2006 21:22:23 +0200
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.
.
- Follow-Ups:
- Re: Feature request: sorting a list slice
- From: George Sakkis
- Re: Feature request: sorting a list slice
- References:
- Feature request: sorting a list slice
- From: George Sakkis
- Feature request: sorting a list slice
- Prev by Date: Re: number of different lines in a file
- Next by Date: Re: Modifying a variable in a non-global outer scope?
- Previous by thread: Re: Feature request: sorting a list slice
- Next by thread: Re: Feature request: sorting a list slice
- Index(es):
Relevant Pages
|
|