[Numpy-svn] [numpy/numpy] c1c066: BUG: Use byte string instead of string in python3 ...

GitHub noreply@github....
Mon Mar 12 09:00:26 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: c1c066806a5e533a71ef070e8a486e15195d65c1
      https://github.com/numpy/numpy/commit/c1c066806a5e533a71ef070e8a486e15195d65c1
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-03-12 (Mon, 12 Mar 2012)

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

  Log Message:
  -----------
  BUG: Use byte string instead of string in python3 buffer test.

The python3 unicode strings don't have the __buffer__ interface.


  Commit: 95a52abd7e08d87310bd0f79a1d7a0299aaf8571
      https://github.com/numpy/numpy/commit/95a52abd7e08d87310bd0f79a1d7a0299aaf8571
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-03-12 (Mon, 12 Mar 2012)

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

  Log Message:
  -----------
  STY: Put some comments in standard form.


  Commit: 737f690d1c1c6e5ceeb9e1967001e50500459ecd
      https://github.com/numpy/numpy/commit/737f690d1c1c6e5ceeb9e1967001e50500459ecd
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-03-12 (Mon, 12 Mar 2012)

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

  Log Message:
  -----------
  BUG: In Python 3K PyComplex can't convert byte strings.

This may be more a workaround for a Python 3K inconsistency or bug,
but it is probably better to use unicode for these sorts of calls.

The fix itself is a bit of a hack, but so is the *_to_* function.
It really needs a rewrite.


Compare: https://github.com/numpy/numpy/compare/84f324a...737f690


More information about the Numpy-svn mailing list