-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: do not decref borrowed refs for extobj and axes #11244
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
Conversation
0088c3f
to
4689d8b
Compare
Test passed on first round; next round only added some comments so should be all OK to review. |
Can you add comments to the output args of |
4689d8b
to
fb62e9f
Compare
@eric-wieser - OK, done. One question: shall I just give each their own reference? Right now it is a mess, and I'm not sure there is any real benefit to passing down those borrowed references. |
That sounds like a pretty good idea to me |
* out_extobj: borrowed ref. | ||
* out_typetup: new ref. | ||
* out_wheremask: new ref. | ||
* out_axes: borrowed ref. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about nevermind, I see that's aboveout_op
?
I'd be inclined to put these on the same line as the parameter definitions, to reduce the chance of the comments going out of sync
closing this in favour of #11257, where I just ensure that all have their own reference. |
The request by @eric-wieser for more tests in #11018 keep on yielding somewhat unrelated errors. Here, an overzealous
XDECREF
on borrowed values.