[Numpy-svn] [numpy/numpy] 48a06c: ENH: warning on silent truncation of indices

GitHub noreply@github....
Fri Dec 14 20:15:53 CST 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 48a06cf8c9e559913c90bfb584e9a44fbed59e01
      https://github.com/numpy/numpy/commit/48a06cf8c9e559913c90bfb584e9a44fbed59e01
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-12 (Wed, 12 Dec 2012)

  Changed paths:
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/private/npy_pycompat.h

  Log Message:
  -----------
  ENH: warning on silent truncation of indices


  Commit: 5b1d7d60f7067c2355291633d08c31f1f3c036f1
      https://github.com/numpy/numpy/commit/5b1d7d60f7067c2355291633d08c31f1f3c036f1
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-12 (Wed, 12 Dec 2012)

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

  Log Message:
  -----------
  DOC: Clarify a C code comment.


  Commit: f354ade123accc4be71654b3fe6511aabf232594
      https://github.com/numpy/numpy/commit/f354ade123accc4be71654b3fe6511aabf232594
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-12 (Wed, 12 Dec 2012)

  Changed paths:
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.c

  Log Message:
  -----------
  STY: C code style.


  Commit: 830126cd7c5853daf50a9bf4bd3ac649096182b6
      https://github.com/numpy/numpy/commit/830126cd7c5853daf50a9bf4bd3ac649096182b6
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

  Changed paths:
    A numpy/core/tests/test_deprecations.py

  Log Message:
  -----------
  TST: Add tests for deprecation warnings.


  Commit: 0aa1a4b81a603be4e4e975b6f00485e0eb7899b0
      https://github.com/numpy/numpy/commit/0aa1a4b81a603be4e4e975b6f00485e0eb7899b0
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  TST: Add back failing tests + negative index.


  Commit: e5fce7847d58faf6eeaf4efb591e99977698d927
      https://github.com/numpy/numpy/commit/e5fce7847d58faf6eeaf4efb591e99977698d927
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

  Changed paths:
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.c

  Log Message:
  -----------
  BUG: Explicitly bubble errors up, simple case.


  Commit: 783130c6c81dc096b47a0f44ef62872ab81da9f8
      https://github.com/numpy/numpy/commit/783130c6c81dc096b47a0f44ef62872ab81da9f8
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  BUG: Bubble errors from _tuple_of_integers.

Refactors _tuple_of_integers a little bit in order to propagate error
state. Zero indicates failure of the test (given tuple is not a tuple of
integers), whereas non-zero indicates either success (positive) or
an exception during the warning (negative). This allows us to use
(ret = _tuple_of_integers(...)) as an if condition, and then put the
error handling inside the if body.


  Commit: ac749afb940857b74158ce60ff780db12ed5e558
      https://github.com/numpy/numpy/commit/ac749afb940857b74158ce60ff780db12ed5e558
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  Fix typo in module-level comment.


  Commit: 9c87855da1e90eeeab84880c3c442041d52ea398
      https://github.com/numpy/numpy/commit/9c87855da1e90eeeab84880c3c442041d52ea398
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  STY: comment blank line/*'s.


  Commit: 484f876d00cdf84a9ec23d38463f266579a8e966
      https://github.com/numpy/numpy/commit/484f876d00cdf84a9ec23d38463f266579a8e966
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  REF: move tuple checks into function.


  Commit: 2ca3a2488e67cb09b9c8bfbd2f59ed73dad12b74
      https://github.com/numpy/numpy/commit/2ca3a2488e67cb09b9c8bfbd2f59ed73dad12b74
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  ENH: Add NPY_INLINE to _is_full_index.


  Commit: 5acc7df970c005ef52d87563450da3303db04467
      https://github.com/numpy/numpy/commit/5acc7df970c005ef52d87563450da3303db04467
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  REF: nested conditionals for readability.


  Commit: 3a0b66e47f53f5664c281c7e4f63f3fe9ddd1f87
      https://github.com/numpy/numpy/commit/3a0b66e47f53f5664c281c7e4f63f3fe9ddd1f87
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

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

  Log Message:
  -----------
  TST: disable DeprecationWarning tests in 2.4

These DeprecationWarnings use a Python 2.5+ feature (PyIndex_Check) and
don't fire for 2.4 (support for which will be dropped shortly anyway).


  Commit: 5de9999d82fa2353fce4518a83c187a168bf2aa3
      https://github.com/numpy/numpy/commit/5de9999d82fa2353fce4518a83c187a168bf2aa3
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

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

  Log Message:
  -----------
  TST: Add tests for non-int slice deprecation.


  Commit: 1515155e32ece1bd6dfe1ea85101ede9a8b1c44c
      https://github.com/numpy/numpy/commit/1515155e32ece1bd6dfe1ea85101ede9a8b1c44c
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

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

  Log Message:
  -----------
  ENH: DeprecationWarning for non-int slice indices.


  Commit: 8ff916a47d9a64baeb16f02c8cf502b11c15b177
      https://github.com/numpy/numpy/commit/8ff916a47d9a64baeb16f02c8cf502b11c15b177
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

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

  Log Message:
  -----------
  DOC: Deprecation info for float-slicing.


  Commit: bb0952d780fd0488c9ea872e33c0bf9d79fe7607
      https://github.com/numpy/numpy/commit/bb0952d780fd0488c9ea872e33c0bf9d79fe7607
  Author: David Warde-Farley <wardefar@iro.umontreal.ca>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

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

  Log Message:
  -----------
  DOC: Comments about deprecation timeframe.


  Commit: 7706227842c5d57804a99ce35ac191be542938da
      https://github.com/numpy/numpy/commit/7706227842c5d57804a99ce35ac191be542938da
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2012-12-14 (Fri, 14 Dec 2012)

  Changed paths:
    M numpy/core/src/multiarray/iterators.c
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/src/private/npy_pycompat.h
    A numpy/core/tests/test_deprecations.py

  Log Message:
  -----------
  Merge pull request #2812 from dwf/deprecate_scalar_float

Deprecate non-integer scalar indices and slice parameters


Compare: https://github.com/numpy/numpy/compare/4f7d3ff25388...7706227842c5


More information about the Numpy-svn mailing list