diff options
author | Sam Gross <colesbury@gmail.com> | 2025-02-11 22:29:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 22:29:27 (GMT) |
commit | a7427f2db937adb4c787754deb4c337f1894fe86 (patch) | |
tree | 8506cb6a4cfb41e5d575b35f052502de3bfb9005 /Python/bytecodes.c | |
parent | 1f233f56d6a5216b18e8c3f6b8c14d7e5d62c340 (diff) | |
download | cpython-a7427f2db937adb4c787754deb4c337f1894fe86.zip cpython-a7427f2db937adb4c787754deb4c337f1894fe86.tar.gz cpython-a7427f2db937adb4c787754deb4c337f1894fe86.tar.bz2 |
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>
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions