[Numpy-svn] [numpy/numpy] 339c35: Copy bytes object when unpickling an array

GitHub noreply@github....
Thu Aug 2 22:52:40 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 339c35f30a0a3b52b13980dabb8eeda9602b686f
      https://github.com/numpy/numpy/commit/339c35f30a0a3b52b13980dabb8eeda9602b686f
  Author: Ronan Lamy <Ronan.Lamy@normalesup.org>
  Date:   2012-07-30 (Mon, 30 Jul 2012)

  Changed paths:
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Copy bytes object when unpickling an array


  Commit: d1839283a2b0b393096cf6bda9b386ea5809d4b0
      https://github.com/numpy/numpy/commit/d1839283a2b0b393096cf6bda9b386ea5809d4b0
  Author: Ronan Lamy <Ronan.Lamy@normalesup.org>
  Date:   2012-08-02 (Thu, 02 Aug 2012)

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

  Log Message:
  -----------
  Re-enable unpickling optimization for large py3k bytes objects.

Mutating a bytes object is theoretically unsafe, but doesn't cause any
problem in any existing version of CPython.


  Commit: fd15162fbff5dd68c548284947d39bb2a2481183
      https://github.com/numpy/numpy/commit/fd15162fbff5dd68c548284947d39bb2a2481183
  Author: Travis E. Oliphant <teoliphant@gmail.com>
  Date:   2012-08-02 (Thu, 02 Aug 2012)

  Changed paths:
    M numpy/core/src/multiarray/methods.c
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #371 from rlamy/bytes-pickle

Copy bytes object for small arrays when unpickling an array


Compare: https://github.com/numpy/numpy/compare/26fed25e7f04...fd15162fbff5


More information about the Numpy-svn mailing list