Skip to content

BUG: core: allow scalar type richcompare to call ndarray-subclass methods - #4711

Merged
juliantaylor merged 1 commit into
numpy:masterfrom
pv:scalar-richcmp-fix
May 14, 2014
Merged

juliantaylor merged 1 commit into
numpy:masterfrom
pv:scalar-richcmp-fix

Conversation

@pv

@pv pv commented May 14, 2014

Copy link
Copy Markdown
Member

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
Copy Markdown
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

seberg commented May 14, 2014

Copy link
Copy Markdown
Member

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