[Numpy-svn] [numpy/numpy] 4a9ad1: BUG: numpy.ma functions can be called with only ke...

GitHub noreply at github.com
Fri Sep 25 08:27:50 EDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 4a9ad17e58a042931798c32b39b137f52abc3aed
      https://github.com/numpy/numpy/commit/4a9ad17e58a042931798c32b39b137f52abc3aed
  Author: Jonathan Helmus <jjhelmus at gmail.com>
  Date:   2015-09-24 (Thu, 24 Sep 2015)

  Changed paths:
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py

  Log Message:
  -----------
  BUG: numpy.ma functions can be called with only keyword arguments

numpy.ma.empty, zeros, ones, etc can be called using only keyword arguments
without a positional argument.  Previously a single positional argument was
required.

For example:

np.ma.zeros(shape=(10, ))

closes #6106


  Commit: 1765438b5f68eeb5c9b920e8df2760dc8e908cae
      https://github.com/numpy/numpy/commit/1765438b5f68eeb5c9b920e8df2760dc8e908cae
  Author: ahaldane <ealloc at gmail.com>
  Date:   2015-09-25 (Fri, 25 Sep 2015)

  Changed paths:
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py

  Log Message:
  -----------
  Merge pull request #6355 from jjhelmus/ma_zero_shape

BUG: numpy.ma functions can be called with only keyword arguments


Compare: https://github.com/numpy/numpy/compare/941a4e037d39...1765438b5f68


More information about the Numpy-svn mailing list