Skip to content

[3.13] gh-129967: Fix race condition in repr(set) (gh-129978) - #130020

Merged
colesbury merged 1 commit into
python:3.13from
colesbury:backport-a7427f2-3.13
Feb 11, 2025
Merged

[3.13] gh-129967: Fix race condition in repr(set) (gh-129978)#130020
colesbury merged 1 commit into
python:3.13from
colesbury:backport-a7427f2-3.13

Conversation

@colesbury

@colesbury colesbury commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

The call to PySequence_List() could temporarily unlock and relock the set, allowing the items to be cleared and return the incorrect notation {} for a empty set (it should be set()).

(cherry picked from commit a7427f2)

…29978)

The call to `PySequence_List()` could temporarily unlock and relock the
set, allowing the items to be cleared and return the incorrect
notation `{}` for a empty set (it should be `set()`).
(cherry picked from commit a7427f2)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant