diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2023-02-25 13:45:03 -0700 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2023-02-25 13:45:03 -0700 |
commit | 284523848164454f8d3f780824c1a827477c9957 (patch) | |
tree | 3c310881ef6591ce313c76b0dbd24599a2b790ed /numpy/ma/core.py | |
parent | 75dbe93dd9250d23eb37c6cb5883281647c66536 (diff) | |
download | numpy-284523848164454f8d3f780824c1a827477c9957.tar.gz |
BUG: PR 23269 revisions
* handle 0-D masked object array deepcopies, with
regression test, based on reviewer feedback
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 564b80517..9584e56d2 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -6311,7 +6311,7 @@ class MaskedArray(ndarray): # contain compound types--you cannot depend on normal # copy semantics to do the right thing here if self.dtype.hasobject: - copied._data[:] = deepcopy(copied._data) + copied._data[...] = deepcopy(copied._data) return copied |