[Numpy-svn] [numpy/numpy] c1a2a0: BUG: fix instability of structured dtype hash
GitHub
noreply at github.com
Thu Apr 23 09:51:00 EDT 2015
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: c1a2a0e583b5cd5e582c845717b1a2eb6bd0e194
https://github.com/numpy/numpy/commit/c1a2a0e583b5cd5e582c845717b1a2eb6bd0e194
Author: Antoine Pitrou <antoine at python.org>
Date: 2015-04-23 (Thu, 23 Apr 2015)
Changed paths:
M numpy/core/src/multiarray/hashdescr.c
Log Message:
-----------
BUG: fix instability of structured dtype hash
The hash value of a structured dtype was dependent on iteration order
of the fields mapping, which could make (in rare conditions) two
equal dtypes hash to different values. We now consider the fields
in deterministic order, according to the names property.
Closes #5715.
Commit: b635ba42007a69c8fa4dabb1e6668e26447e0fb3
https://github.com/numpy/numpy/commit/b635ba42007a69c8fa4dabb1e6668e26447e0fb3
Author: Jaime <jaime.frio at gmail.com>
Date: 2015-04-23 (Thu, 23 Apr 2015)
Changed paths:
M numpy/core/src/multiarray/hashdescr.c
Log Message:
-----------
Merge pull request #5786 from pitrou/record_dtype_hash
BUG: fix instability of structured dtype hash
Compare: https://github.com/numpy/numpy/compare/e1e05e12898c...b635ba42007a
More information about the Numpy-svn
mailing list