diff options
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 107687e8b..564b80517 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 = deepcopy(self._data) + copied._data[:] = deepcopy(copied._data) return copied |