summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index fdc7f9e83..186f72bf4 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -2842,6 +2842,9 @@ class MaskedArray(ndarray):
# Backwards compatibility w/ numpy.core.ma.
if hasattr(data, '_mask') and not isinstance(data, ndarray):
_data._mask = data._mask
+ # FIXME: should we set `_data._sharedmask = True`? Previously this set `_sharedmask = True`, but
+ # that didn't actually do anything as the variable was unused!
+
# Process mask.
# Type of the mask
mdtype = make_mask_descr(_data.dtype)