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:41:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633120910.96.0.146634393172.issue45338@roundup.psfhosted.org>
In-reply-to
Content
Or keep the reverse mapping in another dict:
    
    count = Counter()
    reverse_mapping = dict()
    for x in all_the_items:
        count.update(keyfunc(x))
        reverse_mapping[keyfunc(x)] = x

Anyways I'm closing it as it is a partial duplicate of key-transforming dictionaries.
History
Date User Action Args
2021-10-01 20:41:50kubataytekinsetrecipients: + kubataytekin, rhettinger, Dennis Sweeney
2021-10-01 20:41:50kubataytekinsetmessageid: <1633120910.96.0.146634393172.issue45338@roundup.psfhosted.org>
2021-10-01 20:41:50kubataytekinlinkissue45338 messages
2021-10-01 20:41:50kubataytekincreate