[Numpy-svn] [numpy/numpy] 2f1174: MAINT: Use np.errstate context manager.

GitHub noreply@github....
Thu Jul 11 19:16:44 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 2f1174dee44e901b7d028beb86f4a8ea324bd74f
      https://github.com/numpy/numpy/commit/2f1174dee44e901b7d028beb86f4a8ea324bd74f
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-07-11 (Thu, 11 Jul 2013)

  Changed paths:
    M numpy/core/arrayprint.py
    M numpy/core/machar.py
    M numpy/core/numeric.py
    M numpy/core/tests/test_half.py
    M numpy/core/tests/test_machar.py
    M numpy/core/tests/test_numeric.py
    M numpy/core/tests/test_regression.py
    M numpy/core/tests/test_scalarmath.py
    M numpy/core/tests/test_umath.py
    M numpy/core/tests/test_umath_complex.py
    M numpy/lib/financial.py
    M numpy/lib/tests/test_function_base.py
    M numpy/lib/tests/test_type_check.py
    M numpy/linalg/linalg.py
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py
    M numpy/ma/tests/test_old_ma.py
    M numpy/ma/tests/test_subclassing.py
    M numpy/ma/timer_comparison.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  MAINT: Use np.errstate context manager.

Now that Python < 2.6 is no longer supported we can use the errstate
context manager in places where constructs like
```
    old = seterr(invalid='ignore')
    try:
  blah
    finally:
       seterr(**old)
```
were used.


  Commit: a053a4372aba0af0bd63ffd5e207baf469cfc7bf
      https://github.com/numpy/numpy/commit/a053a4372aba0af0bd63ffd5e207baf469cfc7bf
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-07-11 (Thu, 11 Jul 2013)

  Changed paths:
    M numpy/core/arrayprint.py
    M numpy/core/machar.py
    M numpy/core/numeric.py
    M numpy/core/tests/test_half.py
    M numpy/core/tests/test_machar.py
    M numpy/core/tests/test_numeric.py
    M numpy/core/tests/test_regression.py
    M numpy/core/tests/test_scalarmath.py
    M numpy/core/tests/test_umath.py
    M numpy/core/tests/test_umath_complex.py
    M numpy/lib/financial.py
    M numpy/lib/tests/test_function_base.py
    M numpy/lib/tests/test_type_check.py
    M numpy/linalg/linalg.py
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py
    M numpy/ma/tests/test_old_ma.py
    M numpy/ma/tests/test_subclassing.py
    M numpy/ma/timer_comparison.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  Merge pull request #3518 from charris/use-errstate-context-manager

MAINT: Use np.errstate context manager.


Compare: https://github.com/numpy/numpy/compare/e1c4806b6499...a053a4372aba


More information about the Numpy-svn mailing list