Skip to content

Conversation

@shihai1991
Copy link
Member

@shihai1991shihai1991 commented Feb 5, 2020

@shihai1991
Copy link
MemberAuthor

Oh, it is generated file, i will check this operation soon.

@shihai1991shihai1991 changed the title bpo-1635741: Calling Py_DECREF() if PyModule_AddObject() fails to runbpo-1635741: Calling Py_INCREF() after PyModule_AddObject() success to runFeb 5, 2020
@shihai1991
Copy link
MemberAuthor

cc @vstinner Hi, victor. It's a small fix. pls review it if you have free time.

@vstinner
Copy link
Member

cc @pablogsal@isidentical

@isidentical
Copy link
Member

I recently saw a PR from @brandtbucher about a more general change that already includes this if I am not mistaken. Check out #17276 (it moves incref after the check by moving check upper). I am in favor of #17276 because it handles the case better also it opened before this PR

@brandtbucher
Copy link
Member

brandtbucher commented Feb 5, 2020

I'm also working my way through the other broken modules in bpo-38823. I need to land #17298 before I can make further progress, though.

Copy link
Member

@brandtbucherbrandtbucher left a comment

Choose a reason for hiding this comment

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

Yes, my PR #17276 is a more comprehensive fix.

@brandtbucherbrandtbucher added the type-bug An unexpected behavior, bug, or error label Feb 5, 2020
@shihai1991
Copy link
MemberAuthor

Oh, thank you for quick feedback, guys.
I checked Brandt's PRs, its enhance very nice. Pls go ahead, thanks. I will subscribe your PRs ;)

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core reviewtype-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@shihai1991@vstinner@isidentical@brandtbucher@the-knights-who-say-ni@bedevere-bot