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 jab
Recipients jab, rhettinger
Date 2022-02-08.22:57:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644361059.78.0.46178012579.issue46684@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the explanation, Raymond.

Regarding:

> Lastly, pure python hashable sets based on the ABC are not common

This would have implications for other use cases though, that are perhaps more common.

See, for example, the following code: https://github.com/jab/bidict/blob/ae9d06/bidict/_frozenbidict.py#L36-L38

This example demonstrates an implementation of a hashable, immutable Mapping type, whose __hash__ implementation returns collections.abc.ItemsView(self)._hash(). Since there are several other libraries I know of that implement hashable/immutable mapping types as well, I thought this might be beneficial enough to users to warrant consideration.
History
Date User Action Args
2022-02-08 22:57:39jabsetrecipients: + jab, rhettinger
2022-02-08 22:57:39jabsetmessageid: <1644361059.78.0.46178012579.issue46684@roundup.psfhosted.org>
2022-02-08 22:57:39jablinkissue46684 messages
2022-02-08 22:57:39jabcreate