summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorpierregm <pierregm@localhost>2008-07-01 22:01:09 +0000
committerpierregm <pierregm@localhost>2008-07-01 22:01:09 +0000
commitbc01c96daf61de61046c5ac7d17a80ab35ccd0ef (patch)
tree5341917c8f548535812a202c57188d85e8781e08 /numpy/ma/core.py
parentf843a88032ebe1f4847dfb97996413fac56b227d (diff)
downloadnumpy-bc01c96daf61de61046c5ac7d17a80ab35ccd0ef.tar.gz
prevent .reshape to update the whole __dict__ of the result, use ._update_from instead
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 02dc6ef68..d4c0cb359 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -2015,7 +2015,7 @@ masked_%(name)s(data = %(data)s,
"""
result = self._data.reshape(*s).view(type(self))
- result.__dict__.update(self.__dict__)
+ result._update_from(self)
if result._mask is not nomask:
result._mask = self._mask.copy()
result._mask.shape = result.shape