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
Py_BuildValue loses reference counts on error #40503
Comments
Py_BuildValue has the convenient "N" type argument to If Py_BuildValue encounters an error processing an From looking at the code in Python/modsupport.c it At first this may seem like a lot of work to do when we |
Logged In: YES Um. Any particular reason for assigning to me? I could probably |
Logged In: YES I thought you would have an interest and be in a good |
Logged In: YES I will attempt a patch, this does not look difficult. I am |
Logged In: YES Thanks, that will be nice. Do make a special effort to make sure this has zero |
Logged In: YES Here is patch, please review and let me know if further Performance difference is negligable for the common (my first Python patch, exciting) |
Logged In: YES Looks OK, I'll probably check it in (with slightly rearranged Is this testable? Maybe in testcapimodule. Maybe it's not worth it. |
Logged In: YES Checked in as Python/modsupport.c revision 2.71 Thanks! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: