summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 86b8fb79f..d8c63ddcd 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -684,6 +684,9 @@ class MaskedArray (object):
# XXX: for the masked singleton? 2005-01-05 -- sasha
if self is masked:
return str(f)
+ m = self._mask
+ if m is not nomask and m.shape == () and m:
+ return str(f)
# convert to object array to make filled work
self = self.astype(object)
else: