Skip to content

DOC: continuation of PyArray_ResolveIfCopy fixes #10168

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

Merged
merged 2 commits into from
Dec 7, 2017

Conversation

mattip
Copy link
Member

@mattip mattip commented Dec 6, 2017

continuaiton of PR #10166

@@ -622,7 +623,11 @@ updates the output array.
if (arr1 == NULL) return NULL;
arr2 = PyArray_FROM_OTF(arg2, NPY_DOUBLE, NPY_IN_ARRAY);
if (arr2 == NULL) goto fail;
#if NPY_API_VERSION >= 0x0000000c
oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_INOUT_ARRAY2);
Copy link
Member

Choose a reason for hiding this comment

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

Should be NPY_ARRAY_INOUT_ARRAY2, also, above should be NPY_ARRAY_IN_ARRAY in both places.

@@ -622,7 +623,11 @@ updates the output array.
if (arr1 == NULL) return NULL;
arr2 = PyArray_FROM_OTF(arg2, NPY_DOUBLE, NPY_IN_ARRAY);
if (arr2 == NULL) goto fail;
#if NPY_API_VERSION >= 0x0000000c
oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_INOUT_ARRAY2);
#else
oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_INOUT_ARRAY);
Copy link
Member

Choose a reason for hiding this comment

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

NPY_ARRAY_INOUT_ARRAY. This documentation is very old ...

@charris charris added this to the 1.14.0 release milestone Dec 6, 2017
@charris charris merged commit 4a2aba5 into numpy:master Dec 7, 2017
@charris
Copy link
Member

charris commented Dec 7, 2017

Thanks @mattip.

@mattip mattip deleted the doc-PyArray_ResolveWritebackIfCopy branch December 8, 2017 09:09
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