You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is by design - it was decided not to change ndarray.__pos__ to invoke np.positive (yet), due to compatibility concerns (a simple implementation would break -string_array).
I think @mhvk or @shoyer can probably give a more insightful rationale.
Perhaps the existance of __array_ufunc__ in a subclass should force the new behaviour into action?
Uh oh!
There was an error while loading. Please reload this page.
Consider the following example:
In numpy 1.13rc2, this prints:
So it looks like
__array_ufunc__
isn't being invoked even though there is now anp.positive
ufunc.The text was updated successfully, but these errors were encountered: