Skip to content

Conversation

@pv
Copy link
Member

@pv pv commented May 14, 2014

This makes the scalar richcmp behave exactly as
"array(self) <op> other". The difference comes in when "other" is an ndarray
subclass, in which case this change allows the subclass to override the
comparison operations via usual Python binop dispatch rules.

Fixes gh-4709

…hods

This makes the scalar richcmp behave exactly as
"array(self) <op> other". The difference comes in when "other" is an ndarray
subclass, in which case this change allows the subclass to override the
comparison operations via usual Python binop dispatch rules.
@juliantaylor
Copy link
Contributor

thanks

juliantaylor added a commit that referenced this pull request May 14, 2014
BUG: core: allow scalar type richcompare to call ndarray-subclass methods
@juliantaylor juliantaylor merged commit 9590c04 into numpy:master May 14, 2014
@seberg
Copy link
Member

seberg commented May 14, 2014

Cool, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to mark "NotImplemented" for comparison operations on subclasses

3 participants