summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-06-12 13:33:40 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-06-12 15:20:19 -0600
commit8f172ddbb90357e80bafa2cd7df4b307ce15600b (patch)
tree584fe3bc99eba768060257657a22a1ebc6369a1f /numpy/core/fromnumeric.py
parent30d755d8737505717d54ed32501261bb94130a7f (diff)
downloadnumpy-8f172ddbb90357e80bafa2cd7df4b307ce15600b.tar.gz
BUG: Make type_tuple_type_resolver more robust.
When a loop match fails on account of casting, continue searching the loops until success or all loops have been examined. The failure to do this was causing true_divide to fail with float inputs and dtype=float because the first loop found was (int8, int8, float64), leading to a casting error as float cannot be safely cast to int8. Versions of numpy previous to 1.10 will still fail silently if this is backported as the casting rules were less strict, so that would also need fixing. Closes #3484.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions