-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
bpo-1635741: Calling Py_INCREF() after PyModule_AddObject() success to run #18365
Conversation
Oh, it is generated file, i will check this operation soon. |
cc @vstinner Hi, victor. It's a small fix. pls review it if you have free time. |
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 |
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.
Yes, my PR #17276 is a more comprehensive fix.
Oh, thank you for quick feedback, guys. |
https://bugs.python.org/issue1635741