[Numpy-svn] [numpy/numpy] fdd9a2: [fix] Check for errors in PyArray_CanCastTypeto DE...

GitHub noreply@github....
Fri Sep 27 18:13:41 CDT 2013


  Branch: refs/heads/maintenance/1.8.x
  Home:   https://github.com/numpy/numpy
  Commit: fdd9a2bc4d3ab63b8ff1e4123a729cb17eea2618
      https://github.com/numpy/numpy/commit/fdd9a2bc4d3ab63b8ff1e4123a729cb17eea2618
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2013-09-27 (Fri, 27 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/convert_datatype.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  [fix] Check for errors in PyArray_CanCastTypeto DEPRECATE

If a user had set warnings to raise errors, then this DEPRECATE would
leave us with an unpropagated exception and cause havoc downstream.

Unfortunately there is no way to propagate an exception from here, so
we just have to throw it away :-(. But this is still better than the
alternative...


  Commit: 450571580d72fc16746ccc3124dd77dc4949c5df
      https://github.com/numpy/numpy/commit/450571580d72fc16746ccc3124dd77dc4949c5df
  Author: Nathaniel J. Smith <njs@pobox.com>
  Date:   2013-09-27 (Fri, 27 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/convert_datatype.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  [fix] If we fail to raise an error, at least dump something to the console


  Commit: ec95b0ae495b67aa7b9499d967064daf7a5cc9f9
      https://github.com/numpy/numpy/commit/ec95b0ae495b67aa7b9499d967064daf7a5cc9f9
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-27 (Fri, 27 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/convert_datatype.c
    M numpy/core/tests/test_ufunc.py

  Log Message:
  -----------
  Merge pull request #3814 from charris/backport-1.8-3806

Backport 1.8 3806


Compare: https://github.com/numpy/numpy/compare/b41ec17beec1...ec95b0ae495b


More information about the Numpy-svn mailing list