[issue16994] collections.Counter.least_common

Serhiy Storchaka report at bugs.python.org
Sat Oct 28 07:25:19 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This proposition was discussed also on Python-Ideas (https://mail.python.org/pipermail/python-ideas/2017-March/045215.html).

I think it should be rejected. In general this doesn't make sense. In rare cases when you want to to get the least common items in the Counter (I don't know any practical examples), you can take a list of all items sorted by the value and take few last items.

----------
assignee:  -> rhettinger
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16994>
_______________________________________


More information about the Python-bugs-list mailing list