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 kubataytekin
Recipients Dennis Sweeney, kubataytekin, rhettinger
Date 2021-10-01.20:18:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633119529.74.0.349323291134.issue45338@roundup.psfhosted.org>
In-reply-to
Content
I was thinking about use cases where one might want to preserve the original key. I was not however aware of PEP 455 and the reasons for it's rejection. My bad.

Yet It is still unclear to me what the best practice would be to reverse lookup unhashable objects. Say you have a list of objects from which you need the most common. If there is no good way of reversing the transform, your only option is iterating trough your list? Which defeats the purpose of using a Counter and you'd be better off counting explicitly. Maybe I'm imagining unrealistic/far-fetched use cases.
History
Date User Action Args
2021-10-01 20:18:49kubataytekinsetrecipients: + kubataytekin, rhettinger, Dennis Sweeney
2021-10-01 20:18:49kubataytekinsetmessageid: <1633119529.74.0.349323291134.issue45338@roundup.psfhosted.org>
2021-10-01 20:18:49kubataytekinlinkissue45338 messages
2021-10-01 20:18:49kubataytekincreate