Skip to content

gh-132713: Fix repr(classmethod) race condition#132899

Closed
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:cm_repr
Closed

gh-132713: Fix repr(classmethod) race condition#132899
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:cm_repr

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Apr 25, 2025

Hold a strong reference to the callable while calling repr(classmethod).

Hold a strong reference to the callable while calling
repr(classmethod).
@vstinner
Copy link
Copy Markdown
Member Author

My fix is incomplete, the reproducer does still crash. Calling __init__() concurrently is not supported, so I prefer to close my PR.

@vstinner vstinner deleted the cm_repr branch December 3, 2025 15:37
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