diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-30 21:26:09 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-30 21:26:09 +0000 |
commit | 5bce29536aa3b0238a728c3fd46c8edc73d3a84f (patch) | |
tree | 4e30f9257c458862cf813d405742807d83976745 /numpy/core/oldnumeric.py | |
parent | 7ddcb8913b4436cbf849edfdbbbef16a0ed9286a (diff) | |
download | numpy-5bce29536aa3b0238a728c3fd46c8edc73d3a84f.tar.gz |
Fix-up _wrapit
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index e9d1835ac..978104469 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -167,6 +167,8 @@ def _wrapit(obj, method, *args, **kwds): wrap = None result = getattr(asarray(obj),method)(*args, **kwds) if wrap: + if not isinstance(result, mu.ndarray): + result = asarray(result) result = wrap(result) return result |