mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-84783: Make the slice object hashable (GH-101264)
This commit is contained in:
parent
5170caf305
commit
61f1e67c6f
7 changed files with 53 additions and 12 deletions
|
@ -288,7 +288,7 @@ error:
|
|||
|
||||
/* Hash for tuples. This is a slightly simplified version of the xxHash
|
||||
non-cryptographic hash:
|
||||
- we do not use any parallellism, there is only 1 accumulator.
|
||||
- we do not use any parallelism, there is only 1 accumulator.
|
||||
- we drop the final mixing since this is just a permutation of the
|
||||
output space: it does not help against collisions.
|
||||
- at the end, we mangle the length with a single constant.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue