summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-05-12 15:23:57 -0400
committerMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-05-12 15:26:01 -0400
commitededeb529406abaaa31edf786c0060ae94f7f8f1 (patch)
tree3fa8c45ebb630b86076dbaa5c1cb1c0b77573733 /numpy/add_newdocs.py
parent14ff219a13e194c5e7995218fea3c7648eb1c875 (diff)
downloadnumpy-ededeb529406abaaa31edf786c0060ae94f7f8f1.tar.gz
BUG: errors in fast_scalar_power are not propagated.
If one raises an ndarray or subclass to particular powers, fast_scalar_power is used in number.c -- this defers to another function (e.g., sqrt for 0.5), but does not check whether an error occurred. In consequece, if a subclass raises an error, and returns NULL, that gets interpreted as meaning the fast operation is not possible, and power is tried in turn, likely raising another exception. This commit fixes fast_scalar_power such that it returns success any time an operation is attempted.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions