-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-110525: Cover PySet_Add
corner case with frozenset
objects
#110544
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
Conversation
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.
There is a leak of num
.
Thanks for the catch! Fixed. |
c7c13da
to
588b3e5
Compare
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, and fs
.
Counting references in your head is exausting! |
Then we probably wouldn't need Python. |
Thanks @sobolevn for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…ythonGH-110544) (cherry picked from commit ea39c87) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-110554 is a backport of this pull request to the 3.12 branch. |
This corner case cannot be covered from Python code, as far as I can tell. But, it is documented:
So, I think we need to test it as well in C code. Sorry for missing this in the original PR!
set
andfrozenset
#110525