[Numpy-svn] [numpy/numpy] b798f1: Switch WARN_ON_WRITE to issuing FutureWarnings ins...

GitHub noreply@github....
Tue Jul 17 15:51:39 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b798f12abac2c5ac807fe9f523fd89e57efaa57c
      https://github.com/numpy/numpy/commit/b798f12abac2c5ac807fe9f523fd89e57efaa57c
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2012-07-17 (Tue, 17 Jul 2012)

  Changed paths:
    M doc/release/1.7.0-notes.rst
    M numpy/core/fromnumeric.py
    M numpy/core/include/numpy/ndarrayobject.h
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Switch WARN_ON_WRITE to issuing FutureWarnings instead of DeprecationWarnings

FutureWarnings are displayed by default, so they should be used
whenever a future change will change the semantics of existing code
(as opposed to making existing code simply stop working).

List discussion:
  http://www.mail-archive.com/numpy-discussion@scipy.org/msg37500.html


  Commit: 6c772fab57934d24b66638ea5001eb02d1662f5e
      https://github.com/numpy/numpy/commit/6c772fab57934d24b66638ea5001eb02d1662f5e
  Author: Travis E. Oliphant <teoliphant@gmail.com>
  Date:   2012-07-17 (Tue, 17 Jul 2012)

  Changed paths:
    M doc/release/1.7.0-notes.rst
    M numpy/core/fromnumeric.py
    M numpy/core/include/numpy/ndarrayobject.h
    M numpy/core/src/multiarray/arrayobject.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #361 from njsmith/warn-on-write-futurewarning

Switch WARN_ON_WRITE to issuing FutureWarnings instead of DeprecationWarnings


Compare: https://github.com/numpy/numpy/compare/1234d1ccc891...6c772fab5793


More information about the Numpy-svn mailing list