[Numpy-svn] [numpy/numpy] db85ed: BUG: immutable _arraymethod function in ma.core

GitHub noreply at github.com
Sun Nov 1 11:59:29 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: db85edeb9326d4ea736e41baf23ae8edfdd6f84c
      https://github.com/numpy/numpy/commit/db85edeb9326d4ea736e41baf23ae8edfdd6f84c
  Author: Jonathan Helmus <jjhelmus at gmail.com>
  Date:   2015-10-29 (Thu, 29 Oct 2015)

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

  Log Message:
  -----------
  BUG: immutable _arraymethod function in ma.core

Replace the _arraymethod class in ma.core with a function factory which
returns class method wrappers around basic array methods. These methods are
bound to the MaskedArray instance and are immutable.

Previously _arraymethod was a class which would incorrectly operate on the
MaskedArray object which last accessed the particular named function.

closes #5247


  Commit: 7389b51294dd3fa786492f127025c3ab7171815d
      https://github.com/numpy/numpy/commit/7389b51294dd3fa786492f127025c3ab7171815d
  Author: ahaldane <ealloc at gmail.com>
  Date:   2015-11-01 (Sun, 01 Nov 2015)

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

  Log Message:
  -----------
  Merge pull request #6588 from jjhelmus/fix_copy_mutable

BUG: immutable _arraymethod function in ma.core


Compare: https://github.com/numpy/numpy/compare/78d962818b87...7389b51294dd


More information about the Numpy-svn mailing list