Skip to content
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

bpo-46615: Don't crash when set operations mutate the sets #31120

Merged
merged 12 commits into from
Feb 11, 2022
Prev Previous commit
newline in NEWS entry
sweeneyde committed Feb 11, 2022
commit c16cba3da24a2f59512429d6a44b5a19f23d111c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
When iterating over sets internally in ``setobject.c``, acquire strong references to the resulting items from the set. This prevents crashes in corner-cases of various set operations where the set gets mutated.
When iterating over sets internally in ``setobject.c``, acquire strong references to the resulting items from the set. This prevents crashes in corner-cases of various set operations where the set gets mutated.