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 Prometheus3375
Recipients Prometheus3375
Date 2021-07-21.21:32:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626903134.43.0.638660457215.issue44704@roundup.psfhosted.org>
In-reply-to
Content
In docstring of Set._hash in _collections_abc.py is written:
"We match the algorithm used by the built-in frozenset type."

But
>>> s = frozenset({i for i in range(10)})
>>> hash(s)
3895031357313128696
>>> Set._hash(s)
3914343279946282847

Looks like Set._hash is different.
History
Date User Action Args
2021-07-21 21:32:14Prometheus3375setrecipients: + Prometheus3375
2021-07-21 21:32:14Prometheus3375setmessageid: <1626903134.43.0.638660457215.issue44704@roundup.psfhosted.org>
2021-07-21 21:32:14Prometheus3375linkissue44704 messages
2021-07-21 21:32:14Prometheus3375create