Message299549
> I don't think it makes sense to add key arguments to mode, mean,
> variance etc. I'm having trouble thinking of what that would
> even mean
I concur. This proposal bends the concept of a key-function to where it is no longer obvious what it does.
> I've given this some more thought, and I think that a "key"
> argument would make sense for a general selection function.
Yes, that would make sense:
select(A, k, key=somefunc) == sorted(A, key=somefunc)[k] |
|
Date |
User |
Action |
Args |
2017-07-31 09:41:31 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, steven.daprano, gerion |
2017-07-31 09:41:31 | rhettinger | set | messageid: <1501494091.42.0.428220806685.issue30999@psf.upfronthosting.co.za> |
2017-07-31 09:41:31 | rhettinger | link | issue30999 messages |
2017-07-31 09:41:31 | rhettinger | create | |
|