summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2023-02-25 13:45:03 -0700
committerTyler Reddy <tyler.je.reddy@gmail.com>2023-02-25 13:45:03 -0700
commit284523848164454f8d3f780824c1a827477c9957 (patch)
tree3c310881ef6591ce313c76b0dbd24599a2b790ed /numpy/ma/core.py
parent75dbe93dd9250d23eb37c6cb5883281647c66536 (diff)
downloadnumpy-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.py2
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