commit | 4194f1465fa85371dcbead57a54bb06d1f0b97d9 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Wed Jul 21 17:23:21 2021 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 21 19:23:21 2021 -0500 |
tree | 2b5d1054f052db9fa8da96c97c1697ce45d562b9 | |
parent | d17449f31d4af7a735e81b587bb329481764412f [diff] [blame] |
bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27282)
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index d92b848..bff58ad 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py
@@ -696,6 +696,7 @@ def _hash(self): hx = hash(x) h ^= (hx ^ (hx << 16) ^ 89869747) * 3644798167 h &= MASK + h ^= (h >> 11) ^ (h >> 25) h = h * 69069 + 907133923 h &= MASK if h > MAX: