bpo-1635741: Calling Py_INCREF() after PyModule_AddObject() success to run#18365
bpo-1635741: Calling Py_INCREF() after PyModule_AddObject() success to run#18365shihai1991 wants to merge 2 commits into
Conversation
|
Oh, it is generated file, i will check this operation soon. |
Sorry, something went wrong.
|
cc @vstinner Hi, victor. It's a small fix. pls review it if you have free time. |
Sorry, something went wrong.
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
brandtbucher
left a comment
There was a problem hiding this comment.
Yes, my PR #17276 is a more comprehensive fix.
Sorry, something went wrong.
|
Oh, thank you for quick feedback, guys. |
Sorry, something went wrong.
https://bugs.python.org/issue1635741