[Numpy-svn] [numpy/numpy] 74eac4: BUG: fix hashing of long integers under python3

GitHub noreply@github....
Thu Sep 26 17:52:23 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 74eac4e16e05167d557f7d96a9c069a1fafa5842
      https://github.com/numpy/numpy/commit/74eac4e16e05167d557f7d96a9c069a1fafa5842
  Author: Julian Taylor <jtaylor.debian@googlemail.com>
  Date:   2013-09-26 (Thu, 26 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/scalartypes.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: fix hashing of long integers under python3

python3 long_hash is more complex than int_hash so instead of copying
into numpy call it via the Python capi.
Same for long long for wich the numpy hash function is not correct with
python 2.7 on i386.
Will be slower but doesn't need adapting each timy python changes.
closes #3793


  Commit: 856b544ac009013c90407e9cae2be68d2561f978
      https://github.com/numpy/numpy/commit/856b544ac009013c90407e9cae2be68d2561f978
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-26 (Thu, 26 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/scalartypes.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #3800 from juliantaylor/fix-long-hash

BUG: fix hashing of long integers under python3


Compare: https://github.com/numpy/numpy/compare/5da4888cdf2e...856b544ac009


More information about the Numpy-svn mailing list