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

GitHub noreply@github....
Fri Sep 27 15:18:52 CDT 2013


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: a81fd3f471834b4cda31d93515070d6c636e1502
      https://github.com/numpy/numpy/commit/a81fd3f471834b4cda31d93515070d6c636e1502
  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: 1ab56d2d6c59434ddca785e54591965b1de25b6d
      https://github.com/numpy/numpy/commit/1ab56d2d6c59434ddca785e54591965b1de25b6d
  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 #3808 from charris/backport-1.7-3800

Backport 1.7 3800


Compare: https://github.com/numpy/numpy/compare/31eb6ce6dc0f...1ab56d2d6c59


More information about the Numpy-svn mailing list