Re: Feature request: sorting a list slice



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.
.



Relevant Pages

  • Re: Disk hogs?
    ... to find out why the / slice is 94% full and looking for any ... fat that can be trimmed out. ... device (tty devices, I think), I suspect at least the first ... first two are tar archives of one sort or another. ...
    (comp.sys.sun.admin)
  • Re: Achievments
    ... Slice wrote: ... Well I think it's just a console type thing that allows you to have side goals so adding value - well sort of. ... It seems to make more sense in TF2 as it's combined with an overall score and various other stats to sort of judge how well you are playing. ...
    (comp.sys.ibm.pc.games.action)
  • Re: [patch] Converting writeback linked lists to a tree based data structure
    ... jobs - bulk throughput is what matters, so the larger the time slice ... you give them the higher the throughput. ... slice 2: flush large file 1 ... merging in this sort of config is that if you send multiple stripe ...
    (Linux-Kernel)
  • Re: Feature request: sorting a list slice
    ... George Sakkis wrote: ... parameters, start and stop, so that you can sort a slice in place. ... a worthwhile performance gain is unlikely. ...
    (comp.lang.python)
  • Re: hash de-ref?
    ... Mai 2005 22.24 schrieb Paul Kraus: ... >> The person who wrote that is using a hash slice. ...
    (perl.beginners)