[Numpy-svn] [numpy/numpy] c87c7a: DEP, MAINT: Change deprecated indexing to errors.

GitHub noreply at github.com
Thu Sep 10 14:02:39 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: c87c7a612ee7f90281797e447255c402b099c73a
      https://github.com/numpy/numpy/commit/c87c7a612ee7f90281797e447255c402b099c73a
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-09-06 (Sun, 06 Sep 2015)

  Changed paths:
    M numpy/core/src/multiarray/conversion_utils.c
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/multiarray/number.c
    M numpy/core/tests/test_deprecations.py
    M numpy/core/tests/test_indexing.py
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  DEP,MAINT: Change deprecated indexing to errors.

The deprecated operations changed to errors are

* Conversion of floats and booleans to npy_intp indexes.
* Conversion of single element integer arrays of ndim > 1 to indexes.
* Multiple ellipsis in index.

The affected deprecation tests have been been changed to check for
raised errors instead, but remain in test_deprecations.py for the
moment. They will be moved when the conversion of the remaining indexing
deprecations is complete.


  Commit: 9f167ff01baff0629db338ae5d41d626e76bca41
      https://github.com/numpy/numpy/commit/9f167ff01baff0629db338ae5d41d626e76bca41
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-09-06 (Sun, 06 Sep 2015)

  Changed paths:
    M numpy/core/tests/test_deprecations.py
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  TST,DEP: Move deprecation tests that now test for exceptions.

Tests of deprecated indexing operations that now raise errors are moved
from test_deprecations.py to test_indexing.py.


  Commit: fb5580ee52a8a294ab3cc771805a1ae1aae9aacd
      https://github.com/numpy/numpy/commit/fb5580ee52a8a294ab3cc771805a1ae1aae9aacd
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-09-06 (Sun, 06 Sep 2015)

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

  Log Message:
  -----------
  STY: PEP8 fixes for test_indexing.py.

Mostly break long lines.


  Commit: dbe5cef95dcaa3c48dad1093084b7d2b65cf889b
      https://github.com/numpy/numpy/commit/dbe5cef95dcaa3c48dad1093084b7d2b65cf889b
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-09-06 (Sun, 06 Sep 2015)

  Changed paths:
    M doc/release/1.11.0-notes.rst

  Log Message:
  -----------
  DOC: Document deprecations that now raise error in 1.11 release notes.


  Commit: 0b0206c1617841ed2e5324de752ee8ede2cce791
      https://github.com/numpy/numpy/commit/0b0206c1617841ed2e5324de752ee8ede2cce791
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-09-10 (Thu, 10 Sep 2015)

  Changed paths:
    M doc/release/1.11.0-notes.rst
    M numpy/core/src/multiarray/conversion_utils.c
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/multiarray/number.c
    M numpy/core/tests/test_deprecations.py
    M numpy/core/tests/test_indexing.py
    M numpy/lib/tests/test_function_base.py

  Log Message:
  -----------
  Merge pull request #6271 from charris/change-deprecated-indexes-to-error

DEP,MAINT: Change deprecated indexing to errors.


Compare: https://github.com/numpy/numpy/compare/438cdd3d75a0...0b0206c16178


More information about the Numpy-svn mailing list