gh-129967: Fix race condition in `repr(set)` (gh-129978)
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()`).
Co-authored-by: T. Wouters <thomas@python.org> S
Sam Gross committed
a7427f2db937adb4c787754deb4c337f1894fe86
Parent: 1f233f5
Committed by GitHub <noreply@github.com>
on 2/11/2025, 10:29:27 PM