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 gerion
Recipients gerion, mark.dickinson, steven.daprano
Date 2017-07-24.19:29:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500924567.24.0.886645031856.issue30999@psf.upfronthosting.co.za>
In-reply-to
Content
The position might be useful, if you have a second list with some side data stored in it, and not a list of tuples :).

I had the idea to file a bug, when I had a list of coordinates and wanted to use the point with the median of the x-coordinates as "representation" for the dataset. With max() and min() in mind, I used median_low() with key argument and get the error that key is not a valid argument (my solution was to use dicts then).

So I thought this would be a similar use case as max() and min() and in fact more consistent. But I fully understand your concerns, that this breaks consistence with the other statistic functions.

This is not a killer feature, but in my opinion nice to have, because it changes nothing on the default (expected) behaviour, but provides with less code very high flexibility.

I cannot say something about other languages.
History
Date User Action Args
2017-07-24 19:29:27gerionsetrecipients: + gerion, mark.dickinson, steven.daprano
2017-07-24 19:29:27gerionsetmessageid: <1500924567.24.0.886645031856.issue30999@psf.upfronthosting.co.za>
2017-07-24 19:29:27gerionlinkissue30999 messages
2017-07-24 19:29:27gerioncreate