]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46615: Don't crash when set operations mutate the sets (GH-31120)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Fri, 11 Feb 2022 16:25:08 +0000 (11:25 -0500)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 16:25:08 +0000 (11:25 -0500)
commit4a66615ba736f84eadf9456bfd5d32a94cccf117
treeeaabfd163cf9959638ab8165c1b80ee9b5681cc0
parent204946986feee7bc80b233350377d24d20fcb1b8
bpo-46615: Don't crash when set operations mutate the sets (GH-31120)

Ensure strong references are acquired whenever using `set_next()`. Added randomized test cases for `__eq__` methods that sometimes mutate sets when called.
Lib/test/test_set.py
Misc/NEWS.d/next/Core and Builtins/2022-02-04-04-33-18.bpo-46615.puArY9.rst [new file with mode: 0644]
Objects/setobject.c