Skip to content

gh-148442: eliminate race condition in list rich comparison#148531

Draft
KowalskiThomas wants to merge 5 commits intopython:mainfrom
KowalskiThomas:kowalski/fix-eliminate-race-condition-in-list-rich-comparison
Draft

gh-148442: eliminate race condition in list rich comparison#148531
KowalskiThomas wants to merge 5 commits intopython:mainfrom
KowalskiThomas:kowalski/fix-eliminate-race-condition-in-list-rich-comparison

Conversation

@KowalskiThomas
Copy link
Copy Markdown
Contributor

@KowalskiThomas KowalskiThomas commented Apr 13, 2026

What is this PR?

This PR is a fix for #148442, where the list's rich comparison function could return an incorrect result due a race condition in non-trivial __eq__ implementations of list elements.

It also updates test_equal_operator_modifying_operand which would previously assert two different lists were equal; it now properly asserts they are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant