diff options
author | mamikony <ernest.mamikonyan@sig.com> | 2014-07-29 16:33:04 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-08-22 09:51:28 -0600 |
commit | f8183164c768d4e654a2bf417987285572761fd9 (patch) | |
tree | 595633fc71d3e4624e23c579d16d3fdd87a53c5e /numpy/lib/arraysetops.py | |
parent | 15cd639932ba641bf27453864bc0bc7e33841548 (diff) | |
download | numpy-f8183164c768d4e654a2bf417987285572761fd9.tar.gz |
BUG: Fix NaN handling in npy_ObjectMax and npy_ObjectMin.
These functions currently fail randomly for Python < 3.x because they
use PyObject_Cmp, which looks at addresses for NaN objects. The fix is
to use PyObject_RichCompareBool, which is available in Python >= 2.6.
Note that for Python 2.6 and 2.7, PyObject_RichCompareBool falls back on
PyObject_Cmp when an object doesn't provide rich compare.
Closes #4903.
Diffstat (limited to 'numpy/lib/arraysetops.py')
0 files changed, 0 insertions, 0 deletions