[Numpy-svn] [numpy/numpy] 4b4d85: ENH: _NoValue class at top-level to test kwargs

GitHub noreply at github.com
Fri Mar 20 21:58:42 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 4b4d8510739c9ea7a80391e2656d84a3c5e4a9c3
      https://github.com/numpy/numpy/commit/4b4d8510739c9ea7a80391e2656d84a3c5e4a9c3
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2015-03-15 (Sun, 15 Mar 2015)

  Changed paths:
    M numpy/__init__.py

  Log Message:
  -----------
  ENH: _NoValue class at top-level to test kwargs

Add _NoValue class at top level to make it possible to detect when
non-default values got passed to a keyword argument, as in:

    def func(a, b=np._NoValue):
  if b is not np._NoValue:
      warnings.warn("Argument b is deprecated",
                    DeprecationWarning)


  Commit: 594c64cedc3e521bc223fb90f29f22b034de3839
      https://github.com/numpy/numpy/commit/594c64cedc3e521bc223fb90f29f22b034de3839
  Author: Matthew Brett <matthew.brett at gmail.com>
  Date:   2015-03-15 (Sun, 15 Mar 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/lib/function_base.py
    M numpy/lib/tests/test_function_base.py
    M numpy/ma/extras.py
    M numpy/ma/tests/test_extras.py
    M numpy/ma/tests/test_regression.py

  Log Message:
  -----------
  ENH: deprecate bias and ddof arguments to corrcoef

The bias and ddof arguments had no effect on the calculation of the
correlation coefficient because the value cancels in the calculation.

Deprecate these arguments to np.corrcoef and np.ma.corrcoef.


  Commit: 59be9173bd909c4dc472b17d8c9f7f62cd11f8bd
      https://github.com/numpy/numpy/commit/59be9173bd909c4dc472b17d8c9f7f62cd11f8bd
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-03-20 (Fri, 20 Mar 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/__init__.py
    M numpy/lib/function_base.py
    M numpy/lib/tests/test_function_base.py
    M numpy/ma/extras.py
    M numpy/ma/tests/test_extras.py
    M numpy/ma/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #5683 from matthew-brett/deprecate-bias-ddof

BUG: deprecation for ignored corrcoef args


Compare: https://github.com/numpy/numpy/compare/a55c7fdfb454...59be9173bd90


More information about the Numpy-svn mailing list