Skip to content

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Sep 13, 2018


- For a single major release, NumPy should check for ``__array_function__``
methods that implement the given function, followed by checks for the new
protocol. If any argument returns a value other than ``NotImplemented``
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the order of these checks should be reversed. That would let you add __array_new_protocol__ while maintaining __array_function__ for supporting old versions of NumPy without any warnings.

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty reasonable to me

@shoyer
Copy link
Member Author

shoyer commented Sep 14, 2018

Merging for now to update the rendered NEP. I'm still happy to make revisions in follow-on PRs.

@shoyer shoyer deleted the nep-18-warn-about-changes branch September 14, 2018 16:15
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.

3 participants