[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4194f1465fa85371dcbead57a54bb06d1f0b97d9 by Miss Islington (bot) in branch '3.10': bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27282) https://github.com/python/cpython/commit/4194f1465fa85371dcbead57a54bb06d1f

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e0ef81600f4331299f61bbe3f7f08bb21d90315b by Miss Islington (bot) in branch '3.9': bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27283) https://github.com/python/cpython/commit/e0ef81600f4331299f61bbe3f7f08bb21d9

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25826 pull_request: https://github.com/python/cpython/pull/27282 ___ Python tracker _

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +25827 pull_request: https://github.com/python/cpython/pull/27283 ___ Python tracker ___ __

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c878f5d81772dc6f718d6608c78baa4be9a4f176 by Dennis Sweeney in branch 'main': bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) https://github.com/python/cpython/commit/c878f5d81772dc6f718d6608c78baa4be9a4f176 -

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I opened a PR. It looks like frozenset.__hash__ changed in GH-5194 and GH-5235, but Set._hash wasn't updated accordingly. -- ___ Python tracker

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch nosy: +Dennis Sweeney nosy_count: 1.0 -> 2.0 pull_requests: +25825 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27281 ___ Python tracker

[issue44704] frozenset.__hash__ vs. Set._hash

2021-07-21 Thread Svyatoslav
New submission from Svyatoslav : 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