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

GitHub noreply@github....
Fri Sep 27 15:19:17 CDT 2013


  Branch: refs/heads/maintenance/1.8.x
  Home:   https://github.com/numpy/numpy
  Commit: 29600569cd481a7b9aa66c8da7a71b3c560ee3ea
      https://github.com/numpy/numpy/commit/29600569cd481a7b9aa66c8da7a71b3c560ee3ea
  Author: Julian Taylor <jtaylor.debian@googlemail.com>
  Date:   2013-09-27 (Fri, 27 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: b41ec17beec107003ab6f8642ed6801fe963b1bf
      https://github.com/numpy/numpy/commit/b41ec17beec107003ab6f8642ed6801fe963b1bf
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-27 (Fri, 27 Sep 2013)

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

  Log Message:
  -----------
  Merge pull request #3809 from charris/backport-1.8-3800

Backport 1.8 3800


Compare: https://github.com/numpy/numpy/compare/062ae76f8dcc...b41ec17beec1


More information about the Numpy-svn mailing list