Skip to content

ENH: Use __array_ufunc__ = None in polynomial convenience classes. - #9015

Merged
njsmith merged 2 commits into
numpy:masterfrom
charris:polynomial-ufunc-optout
Apr 29, 2017
Merged

ENH: Use __array_ufunc__ = None in polynomial convenience classes.#9015
njsmith merged 2 commits into
numpy:masterfrom
charris:polynomial-ufunc-optout

Conversation

@charris

@charris charris commented Apr 28, 2017

Copy link
Copy Markdown
Member

Add __array_ufunc__ = None to ABCPolyBase. This ensures that polynomial
convenience classes will not participate in ufuncs and will have priority
when combined with an ndarray in a Python binary operator.

__array_priority__ is removed, as it is no longer needed.

Add `__array_ufunc__ = None` to ABCPolyBase. This ensures that polynomial
convenience classes will not participate in ufuncs and will have priority
when combined with an ndarray in a Python binary operator.

`__array_priority__` is removed, as it is no longer needed.
@charris

charris commented Apr 28, 2017

Copy link
Copy Markdown
Member Author

There might be some question as to whether the old __array_priority__ should be kept around. I can't see a situation in which that would matter, pickled instances should naturally be reincarnated in the appropriate version when loaded.

@njsmith

njsmith commented Apr 29, 2017

Copy link
Copy Markdown
Member

I can't see a situation in which that would matter

Yeah, FWIW I can't either.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants