8000 BUG: fix not returning out array from ufuncs with subok=False set by juliantaylor · Pull Request #5242 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix not returning out array from ufuncs with subok=False set #5242

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 1 commit into from
Oct 28, 2014

Conversation

juliantaylor
Copy link
Contributor

closes gh-5240

/* If a 'subok' parameter is passed and isn't True, don't wrap */
/*
* If a 'subok' parameter is passed and isn't True, don't wrap but put None
* into slots with out arguments
Copy link
Member

Choose a reason for hiding this comment

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

Umm, wrap what? Why put None into the out argument slots?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None is the value used to indicate to return the output argument NULL is create a new return array via PyArray_Return

Copy link
Member

Choose a reason for hiding this comment

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

OK, might add that to the comment.

@charris
Copy link
Member
charris commented Oct 28, 2014

Thanks Julian. I needed a PR I could commit ;)

charris added a commit that referenced this pull request Oct 28, 2014
BUG: fix not returning out array from ufuncs with subok=False set
@charris charris merged commit 3b22d87 into numpy:master Oct 28, 2014
juliantaylor added a commit that referenced this pull request Oct 28, 2014
BUG: fix not returning out array from ufuncs with subok=False set
@juliantaylor juliantaylor deleted the fix-ufunc-subok-out branch October 28, 2014 23:15
@mhvk
Copy link
Contributor
mhvk commented Oct 29, 2014

Thanks for solving it so quickly. Just in case: Since you had milestone 1.9.1 for #5240, should it be set here as well, as a reminder to add it to that branch?

@juliantaylor
Copy link
Contributor Author

I have already pushed the commit to the branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG np.std with output given stores variance in output
3 participants
0