Skip to content

gh-148259: make list.remove atomic for non-trivial __eq__ comparison#148440

Open
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/bug-prevent-race-condition-in-list-remove
Open

gh-148259: make list.remove atomic for non-trivial __eq__ comparison#148440
KowalskiThomas wants to merge 1 commit intopython:mainfrom
KowalskiThomas:kowalski/bug-prevent-race-condition-in-list-remove

Conversation

@KowalskiThomas
Copy link
Copy Markdown
Contributor

@KowalskiThomas KowalskiThomas commented Apr 12, 2026

What is this PR?

This PR addresses the bug reported in #148259 where calling rich comparison may result in releasing the GIL which may result in list.remove removing the wrong item from the list.

Copy link
Copy Markdown
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

2 participants