New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport 3324 #3490
Backport 3324 #3490
Conversation
…ty__." This reverts commit aa7a047.
Conflicts: numpy/core/tests/test_multiarray.py
Numpy master no longer supports Python 2.4, but 1.7.x still does. According to travis, some Python >2.4-ism snuck in. (And unrelated thing: in the meantime, you can make the corresponding tests in scipy.sparse depend on Numpy version; use |
@@ -2870,5 +2870,152 @@ def test_mem_seteventhook(self): | |||
test_pydatamem_seteventhook_end() | |||
|
|||
|
|||
class PriorityNdarray(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be PriorityNdarray(object):
for Py2.4
Thanks @pv I'll add that to the tests in sparse. |
I hadn't realized that the change was that intrusive. However, it seems to work so in it goes ;) Thanks. |
This backports the fix for having boolean comparisons respect array priority. (original PR).
I need this in 1.7.x for adding boolean comparisons to sparse matrices in SciPy. PR 1 PR 2. Otherwise, comparing a sparse matrix with a dense matrix fails when the dense matrix is on the LHS.