Message412877
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. |
|
Date |
User |
Action |
Args |
2022-02-08 22:57:39 | jab | set | recipients:
+ jab, rhettinger |
2022-02-08 22:57:39 | jab | set | messageid: <1644361059.78.0.46178012579.issue46684@roundup.psfhosted.org> |
2022-02-08 22:57:39 | jab | link | issue46684 messages |
2022-02-08 22:57:39 | jab | create | |
|