gh-152235: Defer GC tracking in set.union and set.difference#152290
Conversation
3bbef7e to
18edd99
Compare
| PyObject *result; | ||
|
|
||
| result = set_copy_impl(so); | ||
| result = set_copy_untracked_lock_held(so); |
There was a problem hiding this comment.
You may rename set_copy_and_difference() to set_copy_and_difference_untracked(), and rename set_difference() to set_difference_untracked().
| @@ -0,0 +1,2 @@ | |||
| Defer GC tracking in :meth:`set.union`, :meth:`set.difference` and | |||
| :meth:`set.__sub__`. Patch by Donghee Na. | |||
There was a problem hiding this comment.
You may complete the Changelog entry of your previous PR.
There was a problem hiding this comment.
Ah, the Docs/Docs CI doesn't like set.__sub__ reference:
/home/runner/work/cpython/cpython/Doc/build/NEWS:854: WARNING: py:meth reference target not found: set.__sub__ [ref.meth]
|
Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @corona10, I could not cleanly backport this to |
|
Sorry, @corona10, I could not cleanly backport this to |
|
GH-152312 is a backport of this pull request to the 3.14 branch. |
|
GH-152316 is a backport of this pull request to the 3.15 branch. |
|
GH-152319 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.