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 JelleZijlstra
Recipients JelleZijlstra
Date 2021-05-01.17:15:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619889322.68.0.709429587996.issue44001@roundup.psfhosted.org>
In-reply-to
Content
After the changes from bpo-42345, the Literal documentation claims that "Literal objects will now raise a TypeError exception during equality comparisons if one of their parameters are not immutable." But in fact it's *unhashable* types that raise an error; mutable but hashable types such as functions or custom objects work fine.

I'll submit a PR for this but may wait until GH-25787 is resolved.
History
Date User Action Args
2021-05-01 17:15:22JelleZijlstrasetrecipients: + JelleZijlstra
2021-05-01 17:15:22JelleZijlstrasetmessageid: <1619889322.68.0.709429587996.issue44001@roundup.psfhosted.org>
2021-05-01 17:15:22JelleZijlstralinkissue44001 messages
2021-05-01 17:15:22JelleZijlstracreate