diff options
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index 74594f97c..b4467bf73 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -1228,8 +1228,10 @@ array(data = %(data)s, #ok, if scalar if d.shape: raise - else: + elif m: result = numeric.array(value, dtype=d.dtype) + else: + result = d return result def ids (self): |