Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

vstinner
Copy link
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
Member Author

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

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