Skip to content

Conversation

ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Dec 14, 2024

cc @colesbury, @vstinner, @kumaraditya303

This is an alternative to gh-126908, and I'm a lot happier with this. Sam's suggestion of using a list turned out to be pretty nice, with the exception of unregister being a little wonky. I suspect we could improve that a little by adding a private API for removing from a list more cleanly, but that's work for later. FWIW, both this PR and the other one will have trouble backporting due to the runtime structure changing size.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

I like the overall change. Here is a first review.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Victor Stinner <vstinner@python.org>
@kumaraditya303 kumaraditya303 enabled auto-merge (squash) December 16, 2024 19:02
@kumaraditya303 kumaraditya303 merged commit 3b76682 into python:main Dec 16, 2024
41 checks passed
@ZeroIntensity ZeroIntensity deleted the atexit-nogil branch December 16, 2024 19:31
@vstinner
Copy link
Member

Congrats @ZeroIntensity for this nice fix!

kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Dec 17, 2024
…127935)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Dec 17, 2024
…127935)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…127935)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@devdanzin
Copy link
Member

Should this be backported or is it not worth it?

@ZeroIntensity
Copy link
Member Author

To 3.13? I don't think it's worth risking breakage.

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.

4 participants