Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: warn that dtype.descr is only for use in PEP3118 #8174

Merged
merged 1 commit into from Oct 19, 2016

Conversation

ahaldane
Copy link
Member

This just makes the description of dtype.descr a little scarier so people don't use it when they shouldn't.

See for example #7790 #8160, also problems like #2215.

@charris
Copy link
Member

charris commented Oct 19, 2016

Thanks Allan.

@eric-wieser
Copy link
Member

eric-wieser commented Nov 18, 2018

This doesn't look right to me - PEP3118 doesn't say anything about __array_interface__.


The format is that required by the 'descr' key in the
`__array_interface__` attribute.
PEP3118 `__array_interface__` attribute.
Copy link
Member

Choose a reason for hiding this comment

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

__array_interface__ is defined as part of https://docs.scipy.org/doc/numpy-1.15.1/reference/arrays.interface.html, not PEP3118.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, OK, I may have misunderstood.

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.

None yet

3 participants