-
-
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
gh-64490: Fix refcount error when arguments are packed to tuple in argument clinic #99233
gh-64490: Fix refcount error when arguments are packed to tuple in argument clinic #99233
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Added Argument Clinic functional test (#96002). |
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.
LGTM. Kumar, do you have any remarks?
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.
LGTM
Merged, thanks! |
Thank you! |
…o tuple in argument clinic (python#99233) (cherry picked from commit 69f6cc7)
GH-100338 is a backport of this pull request to the 3.11 branch. |
While Argument Clinic generated code is packing varargs to a tuple, the arguments' refcounts are not increased.
So all the packed arguments‘ refcounts are decreased 1 improperly when the tuple is released later.
This bug is found in #96178 "Argument Clinic functional test".