diff options
author | Simon Gibbons <simongibbons@gmail.com> | 2017-04-01 21:59:53 +0100 |
---|---|---|
committer | Simon Gibbons <simongibbons@gmail.com> | 2017-04-01 22:54:09 +0100 |
commit | a6c3d0eeab3d65b3ec047e8601da84a2ebb97d70 (patch) | |
tree | 3b3b4a36bd4c439cdce7e02c6ebc49fe34a3deb9 /numpy/doc/indexing.py | |
parent | c93201acabd010bcd15464d058faa02da207a292 (diff) | |
download | numpy-a6c3d0eeab3d65b3ec047e8601da84a2ebb97d70.tar.gz |
BUG: Ensure Errors are correctly checked when PyFloat_AsDouble is called.
There was an error in np.random.uniform where if np.random.uniform
were called with a type that throwed exceptions when it was converted
to a float this exception wouldn't be raised.
This bug was due to an issue where PyFloat_AsDouble was called but
no check for PyErr_Occurred was performed after.
This PR fixes the issue by ensuring that Cython will always emit a
call to PyErr_Occurred if PyFloat_AsDouble returns -1.0
Fixes: #8865
Diffstat (limited to 'numpy/doc/indexing.py')
0 files changed, 0 insertions, 0 deletions