summaryrefslogtreecommitdiff
path: root/numpy/core/oldnumeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-30 21:26:09 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-30 21:26:09 +0000
commit5bce29536aa3b0238a728c3fd46c8edc73d3a84f (patch)
tree4e30f9257c458862cf813d405742807d83976745 /numpy/core/oldnumeric.py
parent7ddcb8913b4436cbf849edfdbbbef16a0ed9286a (diff)
downloadnumpy-5bce29536aa3b0238a728c3fd46c8edc73d3a84f.tar.gz
Fix-up _wrapit
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r--numpy/core/oldnumeric.py2
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