[Numpy-svn] [numpy/numpy] 0bf947: BUG: Fix unicode with byte swap transfer and copys...

GitHub noreply at github.com
Wed Jun 1 17:35:02 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 0bf9478c1fdc1e3b8cf448dbb244baf9dc88f76d
      https://github.com/numpy/numpy/commit/0bf9478c1fdc1e3b8cf448dbb244baf9dc88f76d
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/src/private/lowlevel_strided_loops.h

  Log Message:
  -----------
  BUG: Fix unicode with byte swap transfer and copyswap

These fixes should make unicode byteswapping not be
completely broken. The code is not so much designed for absolute
speed.

Fixes gh-3939


  Commit: 39fdf796d39b52934a25ba59069dcd68161d8e68
      https://github.com/numpy/numpy/commit/39fdf796d39b52934a25ba59069dcd68161d8e68
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M numpy/core/src/multiarray/arrayobject.c

  Log Message:
  -----------
  BUG: Unicode comparison of byteswapped types now works


  Commit: e8be5b11eee7d64661f894651a67ad976016b0cc
      https://github.com/numpy/numpy/commit/e8be5b11eee7d64661f894651a67ad976016b0cc
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  BUG: Make sure string to non-native unicode cast works

Casting to non-negative unicode used the wrong swapping
functionality.
Just to note, the whole swapping is rather inefficient, since
it is completely unnecessary due to the fact that we go via
python in any case, though likely it does not matter.


  Commit: 9d6e3f480e228f3cbe95fd475fcc2e8e3f61736d
      https://github.com/numpy/numpy/commit/9d6e3f480e228f3cbe95fd475fcc2e8e3f61736d
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  TST: Test unicode byteorder cast roundtripping and equality


  Commit: bd82a0dfa39cf80b8f15e5211b08bdf796db2345
      https://github.com/numpy/numpy/commit/bd82a0dfa39cf80b8f15e5211b08bdf796db2345
  Author: ahaldane <ealloc at gmail.com>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/dtype_transfer.c
    M numpy/core/src/private/lowlevel_strided_loops.h
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  Merge pull request #7664 from seberg/fix-unicode-trans

BUG: Fix unicode with byte swap transfer and copyswap


Compare: https://github.com/numpy/numpy/compare/e6593fbe72d2...bd82a0dfa39c


More information about the Numpy-svn mailing list