Skip to content

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

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

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Feb 11, 2025

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>
@colesbury colesbury merged commit ee12a34 into python:3.13 Feb 11, 2025
39 checks passed
@colesbury colesbury deleted the backport-a7427f2-3.13 branch February 11, 2025 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant