[Numpy-svn] [numpy/numpy] ec211e: BUG: core: richcompare must indicate undefined com...

noreply@githu... noreply@githu...
Mon Oct 11 15:22:03 CDT 2010

Branch: refs/heads/maintenance/1.5.x
Home:   http://github.com/numpy/numpy

Commit: ec211eb39ebb459f8db64c445400fe119b838df7
Author: Pauli Virtanen <pav@iki.fi>
Date:   2010-10-10 (Sun, 10 Oct 2010)

Changed paths:
  M numpy/core/src/multiarray/arrayobject.c
  M numpy/core/tests/test_regression.py

Log Message:
BUG: core: richcompare must indicate undefined comparison via Py_NotImplemented (fixes #1491)

The Python documentation indicates that the result from comparisons
should be Py_NotImplemented when undefined, and there is no reason why
not follow that also in array_richcompare.
(cherry picked from commit 11ee694744f2552d77652ed929fdc2b4ccca6843)

More information about the Numpy-svn mailing list