Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-110525: CoverPySet_Add
corner case withfrozenset
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 ofnum
.
sobolevn commentedOct 9, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for the catch! Fixed. |
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, andfs
.
Uh oh!
There was an error while loading.Please reload this page.
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 commitea39c87)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-110554 is a backport of this pull request to the3.12 branch. |
Uh oh!
There was an error while loading.Please reload this page.
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