summaryrefslogtreecommitdiff
path: root/numpy/doc/subclassing.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-04-12 10:32:19 +0100
committerCharles Harris <charlesr.harris@gmail.com>2017-04-27 13:37:50 -0600
commita43174390de55b2496a9e9aed84cf424229e817a (patch)
tree5810c0cd686924c9e912c0bc1dfa452c2c9d395b /numpy/doc/subclassing.py
parent1fc6e633e39cd837cd296104022558b2b880ab29 (diff)
downloadnumpy-a43174390de55b2496a9e9aed84cf424229e817a.tar.gz
BUG: Support nout == 0 and at method
Diffstat (limited to 'numpy/doc/subclassing.py')
-rw-r--r--numpy/doc/subclassing.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py
index 410fc58bd..36d8ff97d 100644
--- a/numpy/doc/subclassing.py
+++ b/numpy/doc/subclassing.py
@@ -488,13 +488,16 @@ following.
if results is NotImplemented:
return NotImplemented
+ if method == 'at':
+ return
+
if ufunc.nout == 1:
results = (results,)
results = tuple((np.asarray(result).view(A)
if output is None else output)
for result, output in zip(results, outputs))
- if isinstance(results[0], A):
+ if results and isinstance(results[0], A):
results[0].info = info
return results[0] if len(results) == 1 else results