diff options
author | Tim Hochberg <tim_hochberg@local> | 2006-03-31 16:28:24 +0000 |
---|---|---|
committer | Tim Hochberg <tim_hochberg@local> | 2006-03-31 16:28:24 +0000 |
commit | 827b79a954d3f222bb1f618fd0a14e606dbd7e6e (patch) | |
tree | b367d689b362e9325ba97ebf13239922372c3a91 /numpy/core/oldnumeric.py | |
parent | f0c7ba02e42d71d120cc782395f01acc6ae15db0 (diff) | |
download | numpy-827b79a954d3f222bb1f618fd0a14e606dbd7e6e.tar.gz |
Fixed _wrapit so that it correctly handled non-array return values.
Diffstat (limited to 'numpy/core/oldnumeric.py')
-rw-r--r-- | numpy/core/oldnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/oldnumeric.py b/numpy/core/oldnumeric.py index 978104469..b8685d69e 100644 --- a/numpy/core/oldnumeric.py +++ b/numpy/core/oldnumeric.py @@ -166,7 +166,7 @@ def _wrapit(obj, method, *args, **kwds): except AttributeError: wrap = None result = getattr(asarray(obj),method)(*args, **kwds) - if wrap: + if wrap and isinstance(result, mu.ndarray): if not isinstance(result, mu.ndarray): result = asarray(result) result = wrap(result) |