[SciPy-Dev] `trim1` and 'trimboth' backwards incompatible change

Sturla Molden sturla.molden at gmail.com
Thu Jun 11 07:31:49 EDT 2015


Abraham Escalante <aeklant at gmail.com> wrote:
> Hello all,
> 
> `trim1` and `trimboth` currently trim items from one or both tails
> (respectively) of an array_like input but they do so without sorting the
> items. It has been discussed that a function such as that does not make
> much sense so that behaviour is being changed. Now the items will be sorted
> prior to trimming.


Wouldn't it be sufficient to do partial sorting (cf. numpy.partition)?

Sturla




More information about the SciPy-Dev mailing list