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
PyArray_Scalar behaves like it is not supposed to in docs #9158
Comments
The relevant code section seems to be here. I managed to get the expected output (i.e., with |
I could manage this fix, if someone confirmed that this is a bug. |
Its an intentional bug though. If you would change this field assignments would break, such as:
Now, this is a horrible way, and it should be Ideally I would prefer if also void scalars were, at least by default, not mutable (which would be a start), but there are also problems involved here, if you put a large array as part of the dtype. In fact, then it all gets even hairier and I doubt there is an easy "right" here at all. |
I think the documentation should be fixed at least. |
Certainly |
Hello, I would like to work on the documentation fix. |
From here:
But this C code:
Produces this (Numpy version: 1.12.0):
So,
PyArray_Scalar
does not copy memory. Is it a mistake in doc or a bug?The text was updated successfully, but these errors were encountered: