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 serhiy.storchaka
Recipients Dennis Sweeney, rhettinger, serhiy.storchaka
Date 2020-06-07.23:41:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591573290.67.0.903775406733.issue40889@roundup.psfhosted.org>
In-reply-to
Content
But hashes of items are not known. Hashes of keys are known, hashes of values and items are not. We can add a special case for dict views in the set constructor and inline the hashing code for tuples, but it will be a lot of code for pretty rare case. And since hashes of values should be calculated in any case, and the significant time will be spent on allocating 2-tuples, the benefit of such optimization will be minor.
History
Date User Action Args
2020-06-07 23:41:30serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, Dennis Sweeney
2020-06-07 23:41:30serhiy.storchakasetmessageid: <1591573290.67.0.903775406733.issue40889@roundup.psfhosted.org>
2020-06-07 23:41:30serhiy.storchakalinkissue40889 messages
2020-06-07 23:41:30serhiy.storchakacreate