This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients gerion, mark.dickinson, rhettinger, steven.daprano
Date 2017-07-31.09:41:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501494091.42.0.428220806685.issue30999@psf.upfronthosting.co.za>
In-reply-to
Content
> 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]
History
Date User Action Args
2017-07-31 09:41:31rhettingersetrecipients: + rhettinger, mark.dickinson, steven.daprano, gerion
2017-07-31 09:41:31rhettingersetmessageid: <1501494091.42.0.428220806685.issue30999@psf.upfronthosting.co.za>
2017-07-31 09:41:31rhettingerlinkissue30999 messages
2017-07-31 09:41:31rhettingercreate