diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-29 22:17:32 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-29 22:17:32 +0000 |
commit | 052de78f3e507a4c405e8665ec8e28bfd8c0756d (patch) | |
tree | d1b98ea871830f369a1bfad15c7bad9d8b4f74ef /numpy/core/oldnumeric.py | |
parent | 8898b967ff8fa95375fcf5c744011e8b3bf06664 (diff) | |
download | numpy-052de78f3e507a4c405e8665ec8e28bfd8c0756d.tar.gz |
Rever to old .reshape copy-if-necessary behavior. Too disruptive to change. A sub-class should change it.
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index aed834c9f..e9d1835ac 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -186,10 +186,7 @@ def reshape(a, newshape, order='C'): reshape = a.reshape except AttributeError: return _wrapit(a, 'reshape', newshape, order=order) - try: - return reshape(newshape, order=order) - except ValueError: - return a.copy(order).reshape(newshape, order=None) + return reshape(newshape, order=order) def choose(a, choices): try: |